feat: add separate postgres instance to calcom
This commit is contained in:
parent
8923e085b1
commit
f31b83e84a
|
@ -10,9 +10,11 @@ services:
|
||||||
- ${APP_PORT}:3000
|
- ${APP_PORT}:3000
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- tipi_main_network
|
||||||
|
depends_on:
|
||||||
|
- db-calcom
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_HOST=${POSTGRES_HOST}
|
- DATABASE_HOST=db-calcom
|
||||||
- DATABASE_URL=postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/calcom
|
- DATABASE_URL=postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@db-calcom/calcom
|
||||||
- POSTGRES_USER=${POSTGRES_USERNAME}
|
- POSTGRES_USER=${POSTGRES_USERNAME}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_DB=calcom
|
- POSTGRES_DB=calcom
|
||||||
|
@ -55,3 +57,16 @@ services:
|
||||||
traefik.http.routers.calcom-local.entrypoints: websecure
|
traefik.http.routers.calcom-local.entrypoints: websecure
|
||||||
traefik.http.routers.calcom-local.service: calcom
|
traefik.http.routers.calcom-local.service: calcom
|
||||||
traefik.http.routers.calcom-local.tls: true
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user