-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose-prod.yml
63 lines (60 loc) · 1.46 KB
/
docker-compose-prod.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
version: "3"
services:
api:
build:
context: .
dockerfile: ./backend/Dockerfile
command: bash /scripts/deploy/api_deploy.sh
ports:
- "8000:8000"
expose: [8000]
volumes:
- ./backend:/backend
- ./scripts:/scripts
working_dir: /backend/RxcVoiceApi/
environment:
- PRODUCTION=True
- DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY
- POSTGRES_HOST=$POSTGRES_HOST
- POSTGRES_PORT=$POSTGRES_PORT
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET
- TWITTER_CONSUMER_KEY=$TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET=$TWITTER_CONSUMER_SECRET
- SENDGRID_API_KEY=$SENDGRID_API_KEY
restart: always
polis:
build:
context: .
dockerfile: ./polis-app/PDockerfile
command: serve -s build -l 3000
volumes:
- ./polis-app/src:/polis-app/src
ports:
- "3000:3000"
expose: [3000]
depends_on:
- api
environment:
- REACT_APP_SITE_ID=$REACT_APP_SITE_ID
stdin_open: true
restart: always
voice:
build:
context: .
dockerfile: ./rxc-voice/PDockerfile
command: serve -s build -l 4000
volumes:
- ./rxc-voice/src:/rxc-voice/src
ports:
- "4000:4000"
expose: [4000]
depends_on:
- api
stdin_open: true
restart: always
volumes:
db-data: