-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttps.yml
More file actions
61 lines (57 loc) · 1.17 KB
/
https.yml
File metadata and controls
61 lines (57 loc) · 1.17 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
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./https/nginx.conf:/etc/nginx/nginx.conf:ro
- ./https/certs:/etc/nginx/certs:ro
networks:
- skeletor-network
depends_on:
- skeletor
restart: unless-stopped
skeletor:
build:
context: .
dockerfile: Dockerfile
expose:
- "80"
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=c2
- DB_USER=skeletor
- DB_PASSWORD=letredin
volumes:
- ./logs:/c2/logs
- ./files:/c2/files
networks:
- skeletor-network
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_DB=c2
- POSTGRES_USER=skeletor
- POSTGRES_PASSWORD=letredin
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U skeletor -d c2"]
interval: 60s
timeout: 15s
retries: 5
networks:
- skeletor-network
restart: unless-stopped
networks:
skeletor-network:
driver: bridge
volumes:
db-data:
driver: local