-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
44 lines (43 loc) · 1.2 KB
/
compose.prod.yml
File metadata and controls
44 lines (43 loc) · 1.2 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
version: '3.8'
services:
web:
build:
context: .
dockerfile: Containerfile.prod
command: uwsgi --ini uwsgi.ini --env DJANGO_SETTINGS_MODULE=tests.settings.production
volumes:
- static_volume:/app/keeper/static:z
- ../private-media:/app/keeper/private-media:z
expose:
- "8000"
env_file:
# podman-compose currently does not work with any other env_file names
- .env
depends_on:
- db
db:
image: docker.io/postgres:15.4
volumes:
# MacOS does not support :Z and will require another method of mounting a volume
# - $POSTGRES_DATA_DIR:/var/lib/postgresql/data:z
- ../postgres_data:/var/lib/postgresql/data
- /etc/passwd:/etc/passwd:ro
env_file:
# podman-compose currently does not work with any other env_file names
- .env
nginx:
build:
context: ./nginx
dockerfile: Containerfile
volumes:
- static_volume:/app/keeper/static:z
- ../private-media:/app/keeper/private-media:z
- ./nginx/server.key:/etc/nginx/ssl/server.key
- ./nginx/server.crt:/etc/nginx/ssl/server.crt
ports:
- "1337:80"
depends_on:
- web
- db
volumes:
static_volume: