-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (57 loc) · 1.17 KB
/
docker-compose.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
services:
api:
build:
context: .
dockerfile: Dockerfile
args:
- APP_USER=tooling
- APP_UUID=1020
image: local/tooling:v1
environment:
- DB_TYPE=postgresql
- DB_HOST=db
- DB_NAME=tooling
- DB_PORT=5432
- DB_USER=tool
- DB_PASS=iamsupersecret
- DB_SSL_MODE=prefer
- SECURE_PASSWORD_1=i-am-encoded-secret-1
- SECURE_PASSWORD_2=i-am-encoded-secret-2
restart: always
networks:
- tooling
ports:
- "80:80"
depends_on:
- db
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "5"
healthcheck:
test: ["CMD", "curl", "-kv", "http://localhost/health/readiness"]
start_period: 5s
interval: 15s
timeout: 5s
retries: 5
db:
image: postgres:alpine3.16
environment:
- POSTGRES_DB=tooling
- POSTGRES_USER=tool
- POSTGRES_PASSWORD=iamsupersecret
restart: always
networks:
- tooling
ports:
- "5432"
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "5"
networks:
tooling:
driver: bridge