forked from netfishers-onl/Netshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (61 loc) · 1.37 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
67
version: "3.8"
services:
netshot:
image: netshot
restart: always
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"
VIRTUAL_HOST: "netshot"
VIRTUAL_PORT: 8080
SELF_SIGNED_HOST: "netshot"
expose:
- 8080
ports:
- "162:1162/udp"
- "514:1514/udp"
networks:
- front
- database
database:
image: postgres:12
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: jwilder/nginx-proxy:alpine
restart: always
environment:
DEFAULT_HOST: netshot
volumes:
- ./certs:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- "80:80"
- "443:443"
networks:
- front
rproxy-cert:
image: sebastienheyd/self-signed-proxy-companion
restart: always
environment:
NGINX_PROXY_CONTAINER: "netshot_rproxy_1"
volumes:
- ./certs:/etc/nginx/certs
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
dbdata:
sslcerts:
networks:
front:
database: