-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (90 loc) · 2.82 KB
/
docker-compose.yml
File metadata and controls
96 lines (90 loc) · 2.82 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
---
x-defaults: &defaults
env_file:
- ./config/tuoni.env
restart: unless-stopped
extra_hosts:
- host.docker.internal:host-gateway
- local-c2:host-gateway
- ${TUONI_HOST_FQDN}:host-gateway
logging:
driver: json-file
options:
max-size: 250m
max-file: "1"
networks:
tuoni-network:
driver: bridge
enable_ipv6: ${TUONI_DOCKER_IPV6_ENABLED:-false}
ipam:
driver: default
config:
- subnet: "fd00::/64"
services:
tuoni-server:
<<: *defaults
profiles: ["app", "server"]
container_name: tuoni-server
hostname: tuoni-server
image: ${TUONI_CONTAINER_REPO:-ghcr.io}/shell-dot/tuoni/server:${VERSION}
volumes:
- ./data/:/app/data/
- ./logs/server/:/app/logs/
- ./payload-templates/:/app/custom-payload-templates/:ro
- ./config/tuoni.yml:/app/tuoni-production.yml:ro
- ./ssl/server/server-selfsigned.keystore:/app/ssl/selfsigned.keystore:ro
- ./ssl/server/server-private.pem:/app/prod-private.pem:ro
- ./ssl/server/server-public.pem:/app/prod-public.pem:ro
- ./plugins/server/:/app/plugins/:ro
network_mode: host
tuoni-client:
<<: *defaults
profiles: ["app", "client"]
container_name: tuoni-client
hostname: tuoni-client
image: ${TUONI_CONTAINER_REPO:-ghcr.io}/shell-dot/tuoni/client:${VERSION}
user: 1000:100
environment:
- TUONI_CLIENT_PORT
- NUXT_LOGGER_ENABLED=${TUONI_CLIENT_LOGGER_ENABLED}
- NUXT_LOGGER_CONSOLE=${TUONI_CLIENT_LOGGER_CONSOLE}
- NUXT_LOGGER_LEVEL=${TUONI_CLIENT_LOGGER_LEVEL}
- NUXT_LOGGER_HEADERS=${TUONI_CLIENT_LOGGER_HEADERS}
volumes:
- ./logs/client/:/srv/logs/client/:rw
- ./plugins/client:/srv/user-defined-plugins/:ro
networks:
- tuoni-network
tuoni-client-nginx:
<<: *defaults
profiles: ["app", "client", "client-nginx"]
container_name: tuoni-client-nginx
hostname: tuoni-client-nginx
image: nginx:alpine
ports:
- "${TUONI_CLIENT_PORT}:${TUONI_CLIENT_PORT}"
volumes:
- ./nginx:/etc/nginx/conf.d:ro
- ./nginx/502_504.html:/var/www/errors/502_504.html:ro
- ./ssl/client/client.crt:/etc/nginx/certs/tuoni.crt:ro
- ./ssl/client/client-private.pem:/etc/nginx/certs/tuoni.key:ro
### uncomment to direct logs to file
### - ./logs/nginx/:/var/log/nginx/:rw
networks:
- tuoni-network
tuoni-docs:
<<: *defaults
profiles: ["app", "docs"]
container_name: tuoni-docs
hostname: tuoni-docs
image: ${TUONI_CONTAINER_REPO:-ghcr.io}/shell-dot/tuoni/docs:${VERSION}
networks:
- tuoni-network
tuoni-utility:
<<: *defaults
profiles: ["utility"]
container_name: tuoni-utility
hostname: tuoni-utility
image: ${TUONI_CONTAINER_REPO:-ghcr.io}/shell-dot/tuoni/utility:${VERSION}
networks:
- tuoni-network