This repository was archived by the owner on Apr 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·119 lines (111 loc) · 2.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·119 lines (111 loc) · 2.48 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.8"
services:
db:
image: "postgres:latest"
expose:
- "5432"
environment:
- POSTGRES_PASSWORD=postgres
#PGDATA: /var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- databases
apidoc:
image: "redocly/redoc:latest"
ports:
- "7000:80"
volumes:
- ./api.yaml:/usr/share/nginx/html/api.yaml
environment:
- SPEC_URL=api.yaml
healthcheck:
test: ["CMD-SHELL", "curl -sS http://0.0.0.0:80 || exit 1"]
interval: 1m30s
timeout: 10s
retries: 3
render:
build:
context: ./render
dockerfile: ../local-dockerfiles/render
args:
buildno: 1
ports:
- "4000:4000"
volumes:
- ./render:/usr/src/app
networks:
- databases
environment:
- PORT=4000
command: bash -c "npm install && npm start"
healthcheck:
test: ["CMD-SHELL", "curl -sS http://0.0.0.0:4000 || exit 1"]
interval: 1m30s
timeout: 10s
retries: 3
backend:
build:
context: ./backend
dockerfile: ../local-dockerfiles/backend
args:
buildno: 1
ports:
- "3000:3000"
volumes:
- ./backend/:/usr/src/app
links:
- db
networks:
- databases
command: bash -c "npm install && bash ./wait-for-it.sh db:5432 -q && npm start"
healthcheck:
test: ["CMD-SHELL", "curl -sS http://0.0.0.0:3000 || exit 1"]
interval: 1m30s
timeout: 10s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: ../local-dockerfiles/frontend
args:
buildno: 1
ports:
- "5000:5000"
volumes:
- ./frontend/:/usr/src/app
links:
- db
- backend
- render
networks:
- databases
command: bash -c "npm install && npm start"
healthcheck:
test: ["CMD-SHELL", "curl -sS http://0.0.0.0:5000 || exit 1"]
interval: 1m30s
timeout: 10s
retries: 3
pgadmin:
image: "dpage/pgadmin4:latest"
ports:
- "5050:80"
links:
- db
networks:
- databases
environment:
- PGADMIN_DEFAULT_EMAIL=developer@sajdl.com
- PGADMIN_DEFAULT_PASSWORD=LocalDeveloper123456
healthcheck:
test: ["CMD-SHELL", "curl -sS http://0.0.0.0:80 || exit 1"]
interval: 1m30s
timeout: 10s
retries: 3
volumes:
pgdata: {}
networks:
databases: