-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.16 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
version: "3.8"
services:
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- shared-volume:/home/nonroot/.local/lib/python3.12/site-packages/static
environment:
DEBUG: $DEBUG
PORT: $PORT
SECRET_KEY: $SECRET_KEY
ALLOWED_HOSTS: $ALLOWED_HOSTS
PGHOST: $PGHOST
PGPORT: $PGPORT
PGUSER: $PGUSER
PGPASSWORD: $PGPASSWORD
PGDB: $PGDB
CSRF_TRUSTED_ORIGINS: $CSRF_TRUSTED_ORIGINS
HASH_IDS_SALT: $HASH_IDS_SALT
SERVER_HOST_NAME: $SERVER_HOST_NAME
nginx:
container_name: nginx
build:
context: ./docker
dockerfile: nginx.dockerfile
restart: always
ports:
- 80:80
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/nginx.conf
- shared-volume:/home/nonroot/.local/lib/python3.12/site-packages/static
depends_on:
- app
postgres:
container_name: postgres
image: postgres
restart: always
volumes:
- ./docker/postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: $PGPASSWORD
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
shared-volume: