Update Formbricks/docker-compose.yaml
This commit is contained in:
@@ -2,21 +2,28 @@ services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: formbricks-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: formbricks
|
||||
volumes:
|
||||
- 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:
|
||||
image: ghcr.io/formbricks/formbricks:latest
|
||||
container_name: formbricks-app
|
||||
container_name: formbricks
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgres
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- ${PORT}:3000
|
||||
- "${PORT}:3000"
|
||||
environment:
|
||||
WEBAPP_URL: ${WEBAPP_URL}
|
||||
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/formbricks?schema=public
|
||||
@@ -29,7 +36,6 @@ services:
|
||||
SMTP_SECURE_ENABLED: ${SMTP_SECURE_ENABLED}
|
||||
SMTP_USER: ${SMTP_USER}
|
||||
SMTP_PASSWORD: ${SMTP_PASSWORD}
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
Reference in New Issue
Block a user