Dateien aus den Blog-Posts eingebaut.

This commit is contained in:
Olli Graf
2023-11-10 09:56:54 +01:00
commit 59593ee076
5 changed files with 76 additions and 0 deletions

4
nginx/createdb.sql Normal file
View File

@@ -0,0 +1,4 @@
create user npm identified by '<passwort>';
create database npm;
grant all privileges on npm.* to npm;
flush privileges;

21
nginx/docker-compose.yml Normal file
View File

@@ -0,0 +1,21 @@
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx
restart: unless-stopped
ports:
- '84:80'
- '81:81'
- '443:443'
environment:
TZ: 'Europe/Berlin'
DB_MYSQL_HOST: "database"
DB_MYSQL_PORT: "3306"
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "<passwort>"
DB_MYSQL_NAME: "npm"
volumes:
- /opt/nginx:/data
# - /opt/nginx-etc:/etc
- /opt/letsencrypt:/etc/letsencrypt