2021-09-21 09:59:34 +00:00
|
|
|
# this file is a helper to run Cal.com locally
|
2021-09-02 15:20:36 +00:00
|
|
|
# starts a postgres instance on port 5450 to use as a local db
|
|
|
|
version: "3.6"
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:13
|
|
|
|
ports:
|
|
|
|
- "5450:5432" # expose pg on port 5450 to not collide with pg from elswhere
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
2022-01-13 20:05:23 +00:00
|
|
|
POSTGRES_DB: "cal-saml"
|
2021-09-02 15:20:36 +00:00
|
|
|
POSTGRES_PASSWORD: ""
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2022-02-10 12:20:09 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
postgres_is_ready:
|
2022-12-23 00:11:31 +00:00
|
|
|
image: postgres
|
2022-02-10 12:20:09 +00:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2021-09-02 15:20:36 +00:00
|
|
|
volumes:
|
|
|
|
db_data:
|