Created
October 28, 2020 23:32
-
-
Save b4oshany/2489d07472c953bda12c7f9767a5bdfd to your computer and use it in GitHub Desktop.
Ngnix Manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
app: | |
image: jc21/nginx-proxy-manager:2 | |
restart: always | |
ports: | |
# Public HTTP Port: | |
- '80:80' | |
# Public HTTPS Port: | |
- '443:443' | |
# Admin Web Port: | |
- '81:81' | |
environment: | |
# Uncomment this if IPv6 is not enabled on your host | |
# DISABLE_IPV6: 'true' | |
volumes: | |
# Make sure this config.json file exists as per instructions above: | |
- ./config.json:/app/config/production.json | |
- ./data:/data | |
- ./letsencrypt:/etc/letsencrypt | |
depends_on: | |
- db | |
db: | |
image: jc21/mariadb-aria:10.4 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: 'npm' | |
MYSQL_DATABASE: 'npm' | |
MYSQL_USER: 'npm' | |
MYSQL_PASSWORD: 'npm' | |
volumes: | |
- ./data/mysql:/var/lib/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"database": { | |
"engine": "mysql", | |
"host": "db", | |
"name": "npm", | |
"user": "npm", | |
"password": "npm", | |
"port": 3306 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"database": { | |
"engine": "knex-native", | |
"knex": { | |
"client": "sqlite3", | |
"connection": { | |
"filename": "/data/database.sqlite" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment