forked from baptisteArno/typebot.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.1 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
version: '3.3'
services:
typebot-db:
image: postgres:13
ports:
- '5432:5432'
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: 'typebot'
POSTGRES_PASSWORD: 'typebot'
minio:
image: minio/minio
command: server /data --console-address ":9001"
ports:
- '9000:9000'
- '9001:9001'
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
- s3_data:/data
# This service just make sure a bucket with the right policies is created
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 10;
/usr/bin/mc config host add minio http://minio:9000 minio minio123;
/usr/bin/mc mb minio/typebot;
/usr/bin/mc anonymous set public minio/typebot/public;
exit 0;
"
node:
build:
context: ./
dockerfile: dev.Dockerfile
volumes:
- ./:/app
entrypoint: ["pnpm", "devlight"]
ports:
- 3000:3000
- 3001:3001
- 5555:5555
volumes:
db_data:
s3_data: