-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 833 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (30 loc) · 833 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
services:
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=bank_db
ports:
- "5432:5432"
volumes:
- data-volume:/var/lib/postgresql/data
# redis:
# image: redis:7-alpine
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
- "9090:9090"
environment:
- DB_SOURCE=postgresql://root:root@postgres:5432/bank_db?sslmode=disable
# - REDIS_ADDRESS=redis:6379
depends_on:
- postgres
# - redis
entrypoint: ["/app/wait-for.sh", "postgres:5432", "--", "/app/start.sh"]
command: ["/app/main"]
volumes:
data-volume: