-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.16 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
version: '3.9'
services:
xenon-mongodb:
image: mongo
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb:/data/mongodb
- ./orchestration/mongodb/init.sh:/docker-entrypoint-initdb.d/init.sh:ro
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_ROOT_PASS}
MONGO_INITDB_DATABASE: ${MONGODB_ROOT_NAME}
MONGO_USERNAME: ${MONGODB_USER}
MONGO_PASSWORD: ${MONGODB_PASS}
MONGO_DATABASE: ${MONGODB_NAME}
networks:
xenon-network:
xenon-redis:
container_name: redis
image: "redis:alpine"
command: redis-server --requirepass ${REDIS_PASS}
ports:
- "6379:6379"
volumes:
- $PWD/redis-data:/var/lib/redis
- $PWD/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
xenon-network:
xenon-bot:
container_name: bot
image: haiyn/xenon-bot:${RELEASE_VERSION}
env_file:
- .env
restart: on-failure:8
ports:
- 8089:8089
networks:
xenon-network:
networks:
xenon-network:
driver: bridge
volumes:
mongodb: