-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (32 loc) · 782 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (32 loc) · 782 Bytes
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
version: "3.0"
networks:
rest-api:
services:
rest-api:
environment:
- HTTP_ADDR=:8080
- FILE_PATH=../../files
- PG_URL=postgres://postgres:postgres@postgres/restapi?sslmode=disable
- PG_MIGRATIONS_PATH=file://../../store/pg/migrations
- LOG_LEVEL=debug
build: ./
command: ["./wait-for-it.sh", "postgres:5432", "--timeout=60", "--", "./rest-api"]
ports:
- 8080:8080
depends_on:
- postgres
networks:
- rest-api
postgres:
restart: always
image: postgres:latest
ports:
- 5433:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=restapi
volumes:
- ./store/pg/data:/var/lib/postgresql/data
networks:
- rest-api