-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.scaled.yml
64 lines (59 loc) · 1.28 KB
/
docker-compose.local.scaled.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
version: '3.8'
services:
nginx:
image: nginx:latest
networks:
- swecc-default
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
depends_on:
- web
web:
tty: true
build: .
networks:
- swecc-default
volumes:
- .:/app
expose:
- "8000"
depends_on:
- db
deploy:
replicas: 3
restart_policy:
condition: on-failure
max_attempts: 3
environment:
- DJANGO_DEBUG=${DJANGO_DEBUG}
- DB_HOST=${DB_HOST}
- 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}
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}
volumes:
postgres_data:
networks:
swecc-default:
external: true
name: swecc-default