-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 1.02 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
version: '3.8'
services:
postgres:
restart: always
image: postgres:latest
ports:
- 5433:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=callback
volumes:
- ./internal/pg/data:/var/lib/postgresql/data
callback:
depends_on:
- postgres
build:
context: ./
dockerfile: Dockerfile.callback
container_name: callback
ports:
- "9090:9090"
environment:
HTTP_ADDR: ":9090"
PG_URL: "postgres://postgres:postgres@postgres/callback?sslmode=disable"
PG_MIGRATIONS_PATH: "file://../../internal/pg/migrations"
command: ["./wait-for-it.sh", "postgres:5432", "--timeout=60", "--", "./callback"]
tester:
depends_on:
- postgres
- callback
build:
context: ./
dockerfile: Dockerfile.tester
container_name: tester
ports:
- "9010:9010"
environment:
HTTP_ADDR: ":9010"
command: ["./wait-for-it.sh", "callback:9090", "--timeout=60", "--", "./tester"]