-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (44 loc) · 835 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
48 lines (44 loc) · 835 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.7"
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis-data:/DATA
deploy:
restart_policy:
condition: on-failure
db:
image: postgres:12-alpine
ports:
- "5432:5432"
volumes:
- pg-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
backend:
image: hs-forum/prod
init: true
ports:
- "8080:8080"
depends_on:
- db
- redis
environment:
- DB_HOST=db
- DB_PASSWORD=password
frontend:
image: nginx:alpine
depends_on:
- backend
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ~/certs:/etc/nginx/certs
- ./webroot:/usr/share/nginx/html:ro
volumes:
pg-data:
redis-data: