-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 988 Bytes
/
docker-compose.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
version: '3.9'
services:
mongodb:
image: mongo:latest
container_name: airdao-mobile-mongodb
restart: on-failure
ports:
- ${MONGO_DB_PORT}:${MONGO_DB_PORT}
environment:
- MONGO_INITDB_DATABASE=${MONGO_DB_NAME}
volumes:
- ./data/mongo/.mongodb-tmp:/data/db
networks:
- airdao-mobile-api
backend:
build:
dockerfile: Dockerfile
container_name: airdao-mobile-backend
restart: on-failure
depends_on:
- mongodb
ports:
- ${PORT}:${PORT}
environment:
- PORT=${PORT}
- APP_ENV=${APP_ENV}
- EXPLORER_API=${EXPLORER_API}
- TOKEN_PRICE_URL=${TOKEN_PRICE_URL}
- MONGO_DB_NAME=${MONGO_DB_NAME}
- MONGO_DB_URL=mongodb://airdao-mobile-mongodb:${MONGO_DB_PORT}/${MONGO_DB_NAME}
- FIREBASE_CRED_PATH=${FIREBASE_CRED_PATH}
- ANDROID_CHANNEL_NAME=${ANDROID_CHANNEL_NAME}
networks:
- airdao-mobile-api
networks:
airdao-mobile-api:
driver: bridge