-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 831 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
36
37
38
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
volumes:
- static:/static
depends_on:
- db
command: bash -c "python manage.py migrate --noinput && python manage.py collectstatic --noinput && python manage.py loaddata example_data.json && gunicorn resume_creator_api.wsgi:application -c gunicorn.config.py"
env_file:
- .env
db:
image: postgres:latest
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
nginx:
build: ./nginx
ports:
- "80:80"
volumes:
- static:/static
depends_on:
- web
volumes:
db_data:
static: