feat: add separate postgres instance to calcom

This commit is contained in:
Sturdy 2024-01-31 14:03:33 +01:00
parent 8923e085b1
commit f31b83e84a

View File

@ -10,9 +10,11 @@ services:
- ${APP_PORT}:3000
networks:
- tipi_main_network
depends_on:
- db-calcom
environment:
- DATABASE_HOST=${POSTGRES_HOST}
- DATABASE_URL=postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/calcom
- DATABASE_HOST=db-calcom
- DATABASE_URL=postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@db-calcom/calcom
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=calcom
@ -55,3 +57,16 @@ services:
traefik.http.routers.calcom-local.entrypoints: websecure
traefik.http.routers.calcom-local.service: calcom
traefik.http.routers.calcom-local.tls: true
db-calcom:
container_name: db-calcom
image: postgres:16.1
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_DB=calcom
networks:
- tipi_main_network