-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 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
52
53
54
55
56
57
58
version: '3.8'
services:
mongodb:
image: mongo:6
container_name: mongodb
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- laundrobot-network
api:
build:
context: ./laundrobotAPI-main
dockerfile: Dockerfile
container_name: laundrobot-api
restart: always
ports:
- "3002:3002"
environment:
- MONGODB_CONN=mongodb://mongodb:27017/laundrobot
- SERVER_PORT=3002
networks:
- laundrobot-network
depends_on:
- mongodb
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3002"]
interval: 5s
timeout: 5s
retries: 3
start_period: 5s
bot:
build:
context: ./laundrobot-telegram-main
dockerfile: Dockerfile
container_name: laundrobot
restart: always
environment:
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- API_URL=http://api:3002
- ENVIRONMENT=${ENVIRONMENT}
networks:
- laundrobot-network
depends_on:
api:
condition: service_healthy
volumes:
mongodb_data:
networks:
laundrobot-network:
driver: bridge