-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
35 lines (33 loc) · 1013 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
version: "3.7"
services:
tellerbot:
build:
context: .
args:
ESCROW_ENABLED: ${ESCROW_ENABLED}
container_name: tellerbot
depends_on:
- database
env_file:
- .env
restart: on-failure
volumes:
- ${DATABASE_PASSWORD_FILENAME}:${DATABASE_PASSWORD_FILENAME}:ro
- ${TOKEN_FILENAME}:${TOKEN_FILENAME}:ro
- ${ESCROW_FILENAME}:${ESCROW_FILENAME}:ro
ports:
- ${SERVER_PORT}:${SERVER_PORT}
database:
image: mongo:latest
container_name: ${DATABASE_HOST}
environment:
- MONGO_INITDB_ROOT_USERNAME=${DATABASE_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD_FILE=${DATABASE_PASSWORD_FILENAME}
- MONGO_INITDB_DATABASE=${DATABASE_NAME}
command: mongod --port ${DATABASE_PORT} --quiet
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
volumes:
- ${DATABASE_PASSWORD_FILENAME}:${DATABASE_PASSWORD_FILENAME}:ro
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro
- ./data/db:/data/db