35 lines
959 B
YAML
35 lines
959 B
YAML
version: "2"
|
|
|
|
services:
|
|
nginx-proxy:
|
|
image: jc21/nginx-proxy-manager:latest
|
|
restart: always
|
|
ports:
|
|
- '80:80'
|
|
- '81:81'
|
|
- '443:443'
|
|
volumes:
|
|
- /containers/data/nginxproxy/config/config.json:/app/config/production.json
|
|
- /containers/data/nginxproxy/data:/data
|
|
- /containers/data/nginxproxy/letsencrypt:/etc/letsencrypt
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
|
|
|
nginx-proxy-db:
|
|
image: mariadb
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
restart: always
|
|
volumes:
|
|
- /containers/data/nginxproxy/mariadbdata:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=
|
|
- MYSQL_PASSWORD=
|
|
- MYSQL_DATABASE=nginxproxy
|
|
- MYSQL_USER=nginxproxy
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|