-
Notifications
You must be signed in to change notification settings - Fork 3
/
base_unbuilt_prod.yml
88 lines (81 loc) · 1.67 KB
/
base_unbuilt_prod.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:
proxy:
restart: always
labels:
com.app.description: "Reverse Proxy"
container_name: proxy
image: ptr-proxy:${TAG}
networks:
- ptr
- nginx-internal
ports:
- 80:80
- 443:443
depends_on:
- frontend
- backend
- public_frontend
db:
labels:
com.app.description: "Postgres Database"
container_name: db
image: ptr-db:${TAG}
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: ptr-backend:${TAG}
restart: unless-stopped
depends_on:
- db
networks:
- ptr
frontend:
labels:
com.app.description: "Frontend React App"
container_name: frontend
image: ptr-frontend:${TAG}
restart: unless-stopped
depends_on:
- backend
- db
networks:
- ptr
public_frontend:
labels:
com.app.description: "Public Website NextJs"
container_name: public_frontend
image: ptr-public_frontend:${TAG}
restart: unless-stopped
depends_on:
- db
networks:
- ptr
networks:
ptr:
driver: bridge
name: ptr
nginx-internal:
driver: bridge
name: nginx-internal
# volumes:
# letsencrypt:
# name: letsencrypt
#named volume we're storing the certbot generated files mounted to a local host folder
volumes:
letsencrypt:
name: letsencrypt
driver: local
driver_opts:
type: none
o: bind
device: letsencrypt