Files
gosom__google-maps-scraper/docker-compose.dev.yaml
2023-05-14 15:01:48 +03:00

34 lines
759 B
YAML

version: '3.8'
services:
db:
image: postgres:15.2-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '127.0.0.1:5432:5432'
expose:
- 5432
volumes:
- gmapsdev:/var/lib/postgresql/data
restart: "unless-stopped"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 30s
retries: 5
migrate:
image: migrate/migrate
volumes:
- ./scripts/migrations:/migrations
command: ["-path", "/migrations", "-database", "postgres://postgres:postgres@db:5432/postgres?sslmode=disable", "up"]
healthcheck:
test: "exit 0"
depends_on:
db:
condition: service_healthy
volumes:
gmapsdev: