-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.1 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
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
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: _iP0stgr3sP4ssw0rdXTr3m3lyL0ng
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
shared-volume: