Skip to content

Commit

Permalink
🐳 Bump Postgres version in official docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 2, 2023
1 parent 42ae75c commit 876625d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ typebotsToFix.json
snapshots

.env
.typebot-build
15 changes: 12 additions & 3 deletions apps/docs/docs/self-hosting/guides/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ If you don't already have an S3 storage available, you could include it in your
```yml
version: '3.3'
volumes:
s3-data:
services:
minio:
image: minio/minio
Expand All @@ -198,7 +202,7 @@ services:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
- ${PWD}/.typebot/s3:/data
- s3-data:/data
# This service just makes sure a bucket with the right policies is created
createbuckets:
image: minio/mc
Expand Down Expand Up @@ -237,6 +241,11 @@ Here is a config example that spins up Typebot with HTTPS, SMTP and S3 storage.

```yml
version: '3.3'

volumes:
db-data:
s3-data:

services:
caddy-gen:
image: 'wemakeservices/caddy-gen:latest'
Expand All @@ -254,7 +263,7 @@ services:
image: postgres:13
restart: always
volumes:
- {$PWD}/.typebot/database:/var/lib/postgresql/data
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
Expand Down Expand Up @@ -298,7 +307,7 @@ services:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
- {$PWD}/.typebot/s3:/data
- s3_data:/data
# This service just make sure a bucket with the right policies is created
createbuckets:
image: minio/mc
Expand Down
10 changes: 8 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
version: '3.3'

volumes:
db-data:

services:
typebot-db:
image: postgres:13
image: postgres:14-alpine
restart: always
volumes:
- ${PWD}/.typebot/database:/var/lib/postgresql/data
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot

typebot-builder:
image: baptistearno/typebot-builder:latest
restart: always
Expand All @@ -18,6 +23,7 @@ services:
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file: .env

typebot-viewer:
image: baptistearno/typebot-viewer:latest
restart: always
Expand Down

0 comments on commit 876625d

Please sign in to comment.