forked from baptisteArno/typebot.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1007 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
43
44
45
46
47
48
49
version: '3.9'
services:
db:
image: postgres:13
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
builder:
depends_on:
- db
build:
context: .
args:
- SCOPE=builder
ports:
- '8080:3000'
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- './apps/builder/.env.production'
entrypoint: >
/bin/sh -c "
./node_modules/bin/prisma generate;
echo 'Waiting 5s for db to be ready...';
sleep 5;
./node_modules/.bin/prisma migrate deploy;
node server.js;"
viewer:
depends_on:
- db
restart: always
build:
context: .
args:
- SCOPE=viewer
ports:
- '8081:3000'
env_file:
- './apps/viewer/.env.production'
entrypoint: >
/bin/sh -c "
./node_modules/bin/prisma generate;
node server.js;"
volumes:
db_data:
s3_data: