-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 1.86 KB
/
docker-compose.yml
File metadata and controls
83 lines (77 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
django:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
env_file: env.sample
volumes:
- ./src:/app
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
s3proxy:
condition: service_started
mailpit:
condition: service_started
# for development only, to make sure the server reloads when the code changes
command: python manage.py runserver 0.0.0.0:8000
postgres:
image: postgres:16
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
# this matches the values in the env.sample file
POSTGRES_DB: django_reference
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pass123
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
s3proxy:
restart: unless-stopped
image: andrewgaul/s3proxy:sha-4976e17
platform: linux/arm64 # Use this line for ARM64 (Apple M1). Remove for x86.
ports:
- "9000:80"
volumes:
- s3proxy_data:/data
environment:
S3PROXY_AUTHORIZATION: none
S3PROXY_STORAGE: filesystem
# if in development
mailpit:
image: axllent/mailpit
restart: unless-stopped
volumes:
- mailpit_data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
simple_async_worker:
build:
context: .
dockerfile: Dockerfile
command: ./manage.py simple_async_worker
restart: unless-stopped
env_file: env
volumes:
- ./src:/app
depends_on:
- postgres
volumes:
postgres_data:
s3proxy_data:
mailpit_data: