-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.qa.yml
More file actions
45 lines (39 loc) · 956 Bytes
/
docker-compose.qa.yml
File metadata and controls
45 lines (39 loc) · 956 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
version: '3.5'
# To Join any other app setup using another network, change name and set external = true
networks:
default:
name: kpm-qa
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-qa
external: true
services:
mongo:
container_name: mongo-qa
hostname: mongo
ports:
- 127.0.0.1:2349:27017
volumes:
- mongo_db:/data/db
api:
container_name: api-qa
env_file: kpm/.env.qa
environment:
- APPLICATION_COMPONENT=api
ports:
- "127.0.0.1:2350:80"
cron:
container_name: cron-qa
env_file: kpm/.env.qa
environment:
- FIREBASE_CREDENTIALS_FILE=/run/secrets/firebase_creds
- APPLICATION_COMPONENT=cron
secrets:
- firebase_creds
ports:
- 127.0.0.1:2351:80