-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 914 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
41
42
version: '3'
services:
api:
build: ./metalarchives-api
container_name: "ma-api"
depends_on:
- mongodb
networks:
- default
environment:
- MONGO_URL=mongodb://mongodb:27017/metalarchives-api
- DB_CATCH=${DB_CATCH}
bot:
build: ./metalarchives-telegram-bot
container_name: "ma-bot"
depends_on:
- mongodb
- redis
- api
networks:
- default
environment:
- MONGO_URL=mongodb://mongodb:27017/metalarchives-bot
- REDIS_URL=redis://redis:6379
- API_URL=http://api:3000
- BOT_TOKEN=<bot token goes here>
- BOT_USERNAME=<bot username goes here>
mongodb:
image: mongo:latest
container_name: "mongodb"
volumes:
- ./data:/data
networks:
- default
redis:
image: redis:latest
container_name: "redis"
networks:
- default
networks:
default:
driver: bridge