forked from rs-loves-bugs/xsshunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.3 KB
/
docker-compose.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
services:
xsshunterexpress-db:
image: postgres
container_name: xsshunterexpress-db
restart: unless-stopped
env_file:
- .env
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 3s
timeout: 5s
retries: 5
volumes:
- ./postgres-db-data:/var/lib/postgresql/data/pgdata
xsshunterexpress-service:
build: .
container_name: xsshunterexpress-service
restart: unless-stopped
env_file:
- .env
ports:
- 8080:8080
volumes:
- ./payload-fire-images:/app/payload-fire-images
- ~/.config/gcloud/application_default_credentials.json:/gcloud.json
depends_on:
xsshunterexpress-db:
condition: service_healthy
xsshunterexpress-trufflehog:
build:
dockerfile: Dockerfile.trufflehog
container_name: xsshunterexpress-trufflehog
restart: unless-stopped
ports:
- 8000:8000
xsshunterexpress-proxy:
image: caddy:alpine
container_name: xsshunterexpress-proxy
restart: unless-stopped
env_file:
- .env
ports:
- 80:80
- 443:443
volumes:
- ./caddy/data:/data
- ./caddy/config:/config
- ./Caddyfile:/etc/caddy/Caddyfile