forked from gosom/google-maps-scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
44 lines (43 loc) · 1.08 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
44 lines (43 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
db:
image: postgres:15.2-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
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
web:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
command: ["-web", "-dsn", "postgres://postgres:postgres@db:5432/postgres?sslmode=disable", "-addr", ":8080"]
ports:
- '127.0.0.1:8080:8080'
restart: "unless-stopped"
depends_on:
db:
condition: service_healthy
migrate:
condition: service_completed_successfully
volumes:
gmapsdev: