-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
67 lines (62 loc) · 1.43 KB
/
docker-compose.dev.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'
services:
nginx:
image: nginx:latest
networks:
- swecc-default
volumes:
- ./nginx/dev.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
depends_on:
- web
web:
tty: true
build:
context: .
target: development # multi-stage build
networks:
- swecc-default
volumes:
- .:/app
expose:
- "8000"
depends_on:
- db
environment:
- DJANGO_DEBUG=${DJANGO_DEBUG}
- DB_HOST=db
- DB_NAME=${DB_NAME}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_KEY=${SUPABASE_KEY}
- INTERNSHIP_CHANNEL_ID=${INTERNSHIP_CHANNEL_ID}
- NEW_GRAD_CHANNEL_ID=${NEW_GRAD_CHANNEL_ID}
command: python3 server/manage.py runserver 0.0.0.0:8000
db:
image: postgres:13
networks:
- swecc-default
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${DB_PORT}:${DB_PORT}"
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_PORT=${DB_PORT}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
networks:
swecc-default:
external: true
name: swecc-default