-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
51 lines (49 loc) · 1.48 KB
/
docker-compose-dev.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
version: "3"
services:
fubot-dev:
build: .
image: fubot${ENVIRONMENT}
container_name: fubot-${ENVIRONMENT}
restart: unless-stopped
logging:
driver: "journald"
options:
tag: "{{.Name}}/{{.ImageID}}"
environment:
- LOGLEVEL=${LOGLEVEL}
- DISCORDTOKEN=${DISCORDTOKEN}
- CENSUS_TOKEN=${CENSUS_TOKEN}
- MONGO_ADDRESS=${MONGO_ADDRESS}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- ARMA_DB_HOST=${ARMA_DB_HOST}
- ARMA_DB_TOKEN=${ARMA_DB_TOKEN}
- ARMA_HOST=${ARMA_HOST}
- ARMA_QUERY_PORT=${ARMA_QUERY_PORT}
- ARMA_SFTP_HOST=${ARMA_SFTP_HOST}
- ARMA_SFTP_PORT=${ARMA_SFTP_PORT}
- ARMA_SFTP_USERNAME=${ARMA_SFTP_USERNAME}
- ARMA_SFTP_PASSWORD=${ARMA_SFTP_PASSWORD}
- ARMA_SFTP_MAP_PATH=${ARMA_SFTP_MAP_PATH}
- METABASE_KEY=${METABASE_KEY}
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
mongodb-dev:
condition: service_healthy
mongodb-dev:
image: mongo:5
container_name: mongodb-${ENVIRONMENT}
volumes:
- ${MONGO_DATA_DIR}:/data/db
ports:
- 127.0.0.1:27018:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongodb:https://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongodb-dev:27017/ --quiet
interval: 3s
timeout: 10s
retries: 3
restart: unless-stopped