forked from netfishers-onl/Netshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.8"
services:
netshot:
build: .
environment:
NETSHOT_DB_URL: "jdbc:postgresql://database/netshot01"
NETSHOT_DB_USERNAME: "netshot"
NETSHOT_DB_PASSWORD: "change_this_pass"
NETSHOT_DB_ENCRYPTIONPASSWORD: "change_this_pass_too"
NETSHOT_HTTP_TRUSTXFORWARDEDFOR: "true"
labels:
traefik.docker.network: ${COMPOSE_PROJECT_NAME}_front
traefik.http.routers.netshot-https.rule: "PathPrefix(`/`)"
traefik.http.routers.netshot-https.tls: true
traefik.http.routers.netshot-https.entrypoints: "web-secure"
traefik.http.services.netshot.loadbalancer.server.port: "8080"
expose:
- 8080
depends_on:
- database
ports:
- "162:1162/udp"
- "514:1514/udp"
networks:
- front
- database
database:
image: postgres:15
restart: always
environment:
POSTGRES_PASSWORD: "change_this_pass"
POSTGRES_USER: "netshot"
POSTGRES_DB: "netshot01"
volumes:
- "dbdata:/var/lib/postgresql/data"
expose:
- 5432
networks:
- database
rproxy:
image: traefik:v2.10
command:
- --api.insecure=true
- --providers.docker
- --entrypoints.web.address=:80
- --entrypoints.web-secure.address=:443
- --entrypoints.web.http.redirections.entryPoint.to=web-secure
- --entrypoints.web.http.redirections.entryPoint.scheme=https
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "443:443"
- "127.0.0.1:8080:8080"
networks:
- front
volumes:
dbdata:
networks:
front:
database: