-
Notifications
You must be signed in to change notification settings - Fork 0
example docker‐compose.override.yml
Serhii Mashentsev edited this page Oct 8, 2023
·
1 revision
Example configuration of docker-compose.override.yml which includes PostgreSQL server
services:
app:
ports:
- "8080:8080"
environment:
DB_HOST: postgres
DB_PASSWORD: test
AUTH_OPENID_CONFIGURATION_URL: "https://accounts.google.com/.well-known/openid-configuration"
# CORS_ALLOWED_ORIGINS: "http://localhost"
# GIN_MODE: release
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:15-alpine
environment:
POSTGRES_PASSWORD: test
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s