Installation Nginx Proxy Manager
Création du fichier 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 |
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' 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: 'MyPassWord' MYSQL_DATABASE: 'MyDatabase' MYSQL_USER: 'MyUserName' MYSQL_PASSWORD: 'MyOtherPassWord' volumes: - ./data/mysql:/var/lib/mysql |
Création du fichier de configuration « config.json »
1 2 3 4 5 6 7 8 9 10 |
{ "database": { "engine": "mysql", "host": "db", "name": "MyDbName", "user": "MyUser", "password": "MyPassWord", "port": 3306 } } |