forked from henrylle/bia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 879 Bytes
/
docker-compose.yml
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
services:
server:
build: .
container_name: bia
ports:
- 3001:8080
links:
- database
environment:
DB_USER: postgres
DB_PWD: postgres
DB_HOST: database
DB_PORT: 5432
## NAO PRECISA NO BOOTCAMP DAQUI PRA BAIXO ##
# DB_SECRET_NAME:
# DB_REGION:
# AWS_ACCESS_KEY_ID:
# AWS_SECRET_ACCESS_KEY:
# DEBUG_SECRET:
# IS_LOCAL: true
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8080/api/versao"]
# interval: 10s
# timeout: 5s
# retries: 3
# start_period: 5s
database:
image: postgres:16.1
container_name: database
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=postgres"
- "POSTGRES_DB=bia"
ports:
- 5433:5432
volumes:
- db:/var/lib/postgresql/data
volumes:
db: