2
0

anpassen der composefiles

This commit is contained in:
2024-09-12 13:52:42 +02:00
parent 4a5748a499
commit 1a234beaf6
3 changed files with 57 additions and 33 deletions

View File

@ -1,30 +1,21 @@
version: '3.9'
services:
typebot-db:
image: postgres:13
restart: always
volumes:
- ${PWD}/.typebot-build/database:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
typebot-builder:
builder:
build:
context: .
args:
- SCOPE=builder
depends_on:
- typebot-db
ports:
- '8080:3000'
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file: .env
typebot-viewer:
viewer:
build:
context: .
args:
- SCOPE=viewer
ports:
- '8081:3000'
env_file: .env
### Befehle:
## Ohne Compose, aber mit "--platform"
# docker buildx build --platform linux/amd64 --build-arg SCOPE=builder --load -t bls-bot-builder:<TAG> .
# docker buildx build --platform linux/amd64 --build-arg SCOPE=viewer --load -t bls-bot-viewer:<TAG> .
## Mit Compose, aber ohne "--platform"
# docker-compose -f docker-compose.build.yml build