Update Formbricks/docker-compose.yaml
This commit is contained in:
@@ -2,21 +2,28 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: formbricks-db
|
container_name: formbricks-db
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
POSTGRES_DB: formbricks
|
POSTGRES_DB: formbricks
|
||||||
volumes:
|
volumes:
|
||||||
- postgres-data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres -d formbricks"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
formbricks:
|
formbricks:
|
||||||
image: ghcr.io/formbricks/formbricks:latest
|
image: ghcr.io/formbricks/formbricks:latest
|
||||||
container_name: formbricks-app
|
container_name: formbricks
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- ${PORT}:3000
|
- "${PORT}:3000"
|
||||||
environment:
|
environment:
|
||||||
WEBAPP_URL: ${WEBAPP_URL}
|
WEBAPP_URL: ${WEBAPP_URL}
|
||||||
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/formbricks?schema=public
|
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/formbricks?schema=public
|
||||||
@@ -29,7 +36,6 @@ services:
|
|||||||
SMTP_SECURE_ENABLED: ${SMTP_SECURE_ENABLED}
|
SMTP_SECURE_ENABLED: ${SMTP_SECURE_ENABLED}
|
||||||
SMTP_USER: ${SMTP_USER}
|
SMTP_USER: ${SMTP_USER}
|
||||||
SMTP_PASSWORD: ${SMTP_PASSWORD}
|
SMTP_PASSWORD: ${SMTP_PASSWORD}
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres-data:
|
postgres-data:
|
||||||
Reference in New Issue
Block a user