docker-compose.yml•1.07 kB
version: '3.8'
services:
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mydb
ports:
- "5432:5432"
volumes:
- postgres_data_simple:/var/lib/postgresql/data
- ./csv:/var/lib/postgresql/csv
- ./init.sql:/docker-entrypoint-initdb.d/init.sql # Mount the seed data script
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d mydb"]
interval: 10s
timeout: 5s
retries: 5
gateway:
# build:
# context: ../..
# dockerfile: Dockerfile.build
# platforms:
# - linux/amd64
# - linux/arm64
image: ghcr.io/centralmind/gateway:v0.2.15
command:
- start
- --config
- /usr/local/bin/config.yaml
- --addr
- ":8182"
# - rest
depends_on:
postgres:
condition: service_healthy
ports:
- "8182:8182"
volumes:
- ./config.yaml:/usr/local/bin/config.yaml
volumes:
postgres_data_simple: