forked from baptisteArno/typebot.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.24 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
59
60
61
62
x-typebot-common: &typebot-common
restart: always
depends_on:
typebot-redis:
condition: service_healthy
typebot-db:
condition: service_healthy
networks:
- typebot-network
env_file: .env
environment:
REDIS_URL: redis://typebot-redis:6379
services:
typebot-db:
image: postgres:16
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
typebot-redis:
image: redis:alpine
restart: always
command: --save 60 1 --loglevel warning
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- redis-data:/data
networks:
- typebot-network
typebot-builder:
<<: *typebot-common
image: baptistearno/typebot-builder:latest
ports:
- '8080:3000'
typebot-viewer:
<<: *typebot-common
image: baptistearno/typebot-viewer:latest
ports:
- '8081:3000'
networks:
typebot-network:
driver: bridge
volumes:
db-data:
redis-data: