Added nginx proxy manager to docker compose file
This commit is contained in:
parent
ad2369ce91
commit
08bbeed4d6
@ -1,6 +1,30 @@
|
|||||||
version: '3.7'
|
version: '3.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
#nginx (80, 443, 8080)
|
||||||
|
app:
|
||||||
|
image: 'jc21/nginx-proxy-manager:latest'
|
||||||
|
ports:
|
||||||
|
# These ports are in format <host-port>:<container-port>
|
||||||
|
- '80:80' # Public HTTP Port
|
||||||
|
- '443:443' # Public HTTPS Port
|
||||||
|
- '127.0.0.1:8080:81' # Admin Web Port
|
||||||
|
# Add any other Stream port you want to expose
|
||||||
|
# - '21:21' # FTP
|
||||||
|
# Uncomment the next line if you uncomment anything in the section
|
||||||
|
# environment:
|
||||||
|
# Uncomment this if you want to change the location of
|
||||||
|
# the SQLite DB file within the container
|
||||||
|
# DB_SQLITE_FILE: "/data/database.sqlite"
|
||||||
|
|
||||||
|
# Uncomment this if IPv6 is not enabled on your host
|
||||||
|
# DISABLE_IPV6: 'true'
|
||||||
|
volumes:
|
||||||
|
- ./nginx/data:/data
|
||||||
|
- ./nginx/letsencrypt:/etc/letsencrypt
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
#MongoDB (27017)
|
#MongoDB (27017)
|
||||||
mongodb:
|
mongodb:
|
||||||
image: "mongo:latest"
|
image: "mongo:latest"
|
||||||
@ -12,7 +36,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./mongo/:/data/db
|
- ./mongo/:/data/db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
#MySQL (3306) + phpMyAdmin (8080)
|
|
||||||
|
#MySQL (3306) + phpMyAdmin (8081)
|
||||||
mysql:
|
mysql:
|
||||||
image: "mysql"
|
image: "mysql"
|
||||||
environment:
|
environment:
|
||||||
@ -29,32 +54,34 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
PMA_HOST: mysql
|
PMA_HOST: mysql
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8080:80"
|
- "127.0.0.1:8081:80"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
- mysql
|
||||||
#Bitwarden rs (8081)
|
|
||||||
|
#Bitwarden rs (8082)
|
||||||
bitwarden:
|
bitwarden:
|
||||||
image: "vaultwarden/server:latest"
|
image: "vaultwarden/server:latest"
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8081:80"
|
- "127.0.0.1:8082:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./bitwarden/:/data/
|
- ./bitwarden/:/data/
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
#gitea (8082)
|
|
||||||
|
#gitea (8083)
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
container_name: gitea
|
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8082:3000"
|
- "127.0.0.1:8083:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea:/data
|
- ./gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
#Websites luke-else.co.uk (8000) snexo.co.uk (8001)
|
#Websites luke-else.co.uk (8000) snexo.co.uk (8001)
|
||||||
luke-else.co.uk:
|
luke-else.co.uk:
|
||||||
image: "php:apache"
|
image: "php:apache"
|
||||||
@ -67,7 +94,7 @@ services:
|
|||||||
snexo.co.uk:
|
snexo.co.uk:
|
||||||
image: "php:apache"
|
image: "php:apache"
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8001:80"
|
- "8001:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./snexo.co.uk/:/var/www/html
|
- ./snexo.co.uk/:/var/www/html
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user