-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
46 lines (40 loc) · 991 Bytes
/
docker-compose.prod.yml
File metadata and controls
46 lines (40 loc) · 991 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
39
40
41
42
43
44
45
46
version: '3.5'
# To Join any other app setup using another network, change name and set external = true
networks:
default:
name: kpm-prod
external: false
secrets:
# https://www.rockyourcode.com/using-docker-secrets-with-docker-compose/
firebase_creds:
file: ../credentials/keepem-d7092-firebase-adminsdk-us2h6-ac9154b389.json
volumes:
mongo_db:
name: kpm_mongo-prod
external: true
services:
mongo:
container_name: mongo-prod
hostname: mongo
ports:
- 127.0.0.1:2399:27017
volumes:
- mongo_db:/data/db
api:
container_name: api-prod
env_file: kpm/.env.prod
environment:
- MAX_WORKERS=24
- APPLICATION_COMPONENT=api
ports:
- 127.0.0.1:2400:80
cron:
container_name: cron-prod
env_file: kpm/.env.prod
environment:
- FIREBASE_CREDENTIALS_FILE=/run/secrets/firebase_creds
- APPLICATION_COMPONENT=cron
secrets:
- firebase_creds
ports:
- 127.0.0.1:2401:80