forked from sdproyi/GHAPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
34 lines (33 loc) · 794 Bytes
/
Copy pathcompose.prod.yml
File metadata and controls
34 lines (33 loc) · 794 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
services:
app:
image: linkedtopgo:latest
container_name: GHAPT-stack
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
environment:
- POSTGRES_HOST=db
- POSTGRES_PASSWORD=myPassword
- POSTGRES_USER=myUser
- POSTGRES_DB=myDatabase
- POSTGRES_PORT=5432
- POSTGRES_SSLMODE=disable
db:
image: postgres:latest
container_name: postgrestest
environment:
POSTGRES_USER: myUser
POSTGRES_PASSWORD: myPassword
POSTGRES_DB: myDatabase
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myUser -d myDatabase"]
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
volumes:
postgres_data: