-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.71 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
68
69
70
version: "3.7"
volumes:
nginx-data:
nginx-letsencrypt:
nginx-db:
networks:
proxy-network:
name: proxy-network
ipam:
driver: default
config:
- subnet: 10.10.10.0/24
services:
# Nginx Proxy Manager web app
app:
depends_on:
- wireguard
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx-manager
network_mode: service:wireguard
restart: unless-stopped
environment:
DB_MYSQL_HOST: "10.10.10.5" # IP address to db
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "nginx" # Change to match db
DB_MYSQL_PASSWORD: "CHANGE_ME" # Change to match db
DB_MYSQL_NAME: "nginx" # Change to match db
volumes:
- nginx-data:/data
- nginx-letsencrypt:/etc/letsencrypt
# MariaDB for Nginx Proxy Manager.
db:
image: 'jc21/mariadb-aria:latest'
container_name: nginx-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: 'CHANGE_ME' # Change to be secure
MYSQL_DATABASE: 'nginx' # Change to be secure; must match app
MYSQL_USER: 'nginx' # Change to be secure; must match app
MYSQL_PASSWORD: 'CHANGE_ME' # Change to be secure; must match app
volumes:
- nginx-db:/var/lib/mysql
networks:
proxy-network:
ipv4_address: 10.10.10.5
# Wireguard client connection.
wireguard:
image: linuxserver/wireguard
container_name: nginx-wireguard
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
volumes:
- ./wireguard:/config
- /lib/modules:/lib/modules
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
networks:
proxy-network:
ipv4_address: 10.10.10.3