-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (33 loc) · 823 Bytes
/
compose.yaml
File metadata and controls
35 lines (33 loc) · 823 Bytes
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
services:
db:
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
restart: unless-stopped
web:
build:
context: .
dockerfile: Dockerfile
user: "0:${NGINX_GID:-0}"
volumes:
- ${SERVER_STATIC_ROOT}:/app/staticfiles
- ${SERVER_MEDIA_ROOT}:/app/media
- ${SOCKET_DIR}:/run/sockets
environment:
- DEBUG=${DEBUG}
- SECRET_KEY=${SECRET_KEY}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
depends_on:
- db
restart: unless-stopped
volumes:
postgres_data: