-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.52 KB
/
docker-compose.yml
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
services:
django:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
env_file: env.sample
volumes:
- ./src:/app
ports:
- "8000:8000"
# 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:
- ./data/pgdata:/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"
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:
- ./data/s3proxy:/data
environment:
S3PROXY_AUTHORIZATION: none
S3PROXY_STORAGE: filesystem
# if in development
mailpit:
image: axllent/mailpit
restart: unless-stopped
volumes:
- ./data/mailpit:/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