-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginxproxymanager.yml
More file actions
29 lines (29 loc) · 896 Bytes
/
Copy pathnginxproxymanager.yml
File metadata and controls
29 lines (29 loc) · 896 Bytes
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
---
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80' # <---- make sure these ports are forwarded if youre behind a router.
- '81:81' # <---- make sure these ports are forwarded if youre behind a router.
- '443:443' # <---- make sure these ports are forwarded if youre behind a router.
restart: always
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
volumes:
- ./nginxproxy-volume/data:/data
- ./nginxproxy-volume/letsencrypt:/etc/letsencrypt
db:
image: 'jc21/mariadb-aria:latest'
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- ./nginxproxy-volume/data/mysql:/var/lib/mysql
restart: always