-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.21 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
45
46
47
48
49
50
51
52
53
services:
postgres:
image: postgres:18-alpine
environment:
POSTGRES_USER: maroonrides
POSTGRES_PASSWORD: maroonrides
POSTGRES_DB: maroonrides
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U maroonrides -d maroonrides"]
interval: 2s
timeout: 3s
retries: 15
requester:
build:
context: .
dockerfile: Dockerfile.dev
environment:
DATABASE_URL: postgres://maroonrides:maroonrides@postgres:5432/maroonrides?sslmode=disable
volumes:
- .:/app
- go-mod:/go/pkg/mod
- go-build:/root/.cache/go-build
depends_on:
postgres:
condition: service_healthy
gateway:
build:
context: .
dockerfile: Dockerfile.dev
command: ["air", "-c", ".air.gateway.toml"]
environment:
DATABASE_URL: postgres://maroonrides:maroonrides@postgres:5432/maroonrides?sslmode=disable
PORT: "3000"
ports:
- "3000:3000"
volumes:
- .:/app
- go-mod:/go/pkg/mod
- go-build:/root/.cache/go-build
depends_on:
postgres:
condition: service_healthy
volumes:
postgres-data:
go-mod:
go-build: