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