-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 861 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (38 loc) · 861 Bytes
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
services:
bot-dev:
build:
context: .
target: dev
container_name: wallu-telegram-bot-dev
profiles: [ dev ]
volumes:
- ./data-dev:/app/data
env_file: [ .env ]
restart: unless-stopped
develop:
watch:
- action: sync
path: ./src
target: /app/src
- action: sync
path: .env
target: /app/.env
- action: rebuild
path: package.json
- action: rebuild
path: Dockerfile
bot-prod:
build:
context: .
target: prod
container_name: wallu-telegram-bot
profiles: [ prod ]
volumes:
- ./data:/app/data
env_file: [ .env ]
restart: unless-stopped
healthcheck:
test: [ "CMD", "sqlite3", "/app/data/wallu_telegram.db", "SELECT 1" ]
interval: 30s
timeout: 5s
retries: 3