-
Notifications
You must be signed in to change notification settings - Fork 3
/
base.yml
88 lines (81 loc) · 1.69 KB
/
base.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.7"
services:
localstack:
restart: always
labels:
com.app.description: "Local Stack"
container_name: localstack
image: parventures/ptr-demo-localstack
depends_on:
- backend
- db
networks:
- ptr
proxy:
restart: always
labels:
com.app.description: "Reverse Proxy"
container_name: proxy
image: parventures/ptr-demo-proxy
networks:
- ptr
- nginx-internal
ports:
- 80:80
- 443:443
depends_on:
- frontend
- backend
- public_frontend
- localstack
db:
labels:
com.app.description: "Postgres Database"
container_name: db
image: parventures/ptr-demo-db
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 15s
timeout: 5s
retries: 5
networks:
- ptr
backend:
labels:
com.app.description: "Backend Service"
container_name: backend
image: parventures/ptr-demo-backend
restart: unless-stopped
depends_on:
- db
networks:
- ptr
frontend:
labels:
com.app.description: "Frontend React App"
container_name: frontend
image: parventures/ptr-demo-frontend
restart: unless-stopped
depends_on:
- backend
- db
networks:
- ptr
public_frontend:
labels:
com.app.description: "Public Website NextJs"
container_name: public_frontend
image: parventures/ptr-demo-public_frontend
restart: unless-stopped
depends_on:
- db
networks:
- ptr
networks:
ptr:
driver: bridge
name: ptr
nginx-internal:
driver: bridge
name: nginx-internal