server/docker-compose.yml

109 lines
2.6 KiB
YAML
Raw Normal View History

2022-01-17 19:57:09 +00:00
version: '3.7'
services:
#nginx (80, 443, 8080)
2022-02-03 21:22:57 +00:00
nginx:
image: 'jc21/nginx-proxy-manager:latest'
2022-02-03 21:22:57 +00:00
container_name: nginx
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
2022-01-17 19:57:09 +00:00
#MongoDB (27017)
mongodb:
image: "mongo:latest"
2022-02-03 21:22:57 +00:00
container_name: mongoDB
2022-01-17 19:57:09 +00:00
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
2022-01-23 16:35:44 +00:00
- "27017:27017"
2022-01-17 19:57:09 +00:00
volumes:
- ./mongo/:/data/db
restart: unless-stopped
#MySQL (3306) + phpMyAdmin (8081)
2022-01-17 19:57:09 +00:00
mysql:
image: "mysql"
2022-02-03 21:22:57 +00:00
container_name: MySQL
2022-01-17 19:57:09 +00:00
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: test_db
ports:
2022-01-23 16:35:44 +00:00
- "3306:3306"
2022-01-17 19:57:09 +00:00
volumes:
- ./mysql/:/var/lib/mysql
restart: unless-stopped
phpMyAdmin:
image: "phpmyadmin/phpmyadmin:latest"
2022-02-03 21:22:57 +00:00
container_name: phpMyAdmin
2022-01-17 19:57:09 +00:00
environment:
PMA_HOST: mysql
ports:
- "127.0.0.1:8081:80"
2022-01-17 19:57:09 +00:00
restart: unless-stopped
2022-01-30 23:30:21 +00:00
depends_on:
- mysql
#Bitwarden rs (8082)
2022-01-17 19:57:09 +00:00
bitwarden:
image: "vaultwarden/server:latest"
2022-02-03 21:22:57 +00:00
container_name: vaultwarden
2022-01-17 19:57:09 +00:00
ports:
- "127.0.0.1:8082:80"
2022-01-17 19:57:09 +00:00
volumes:
- ./bitwarden/:/data/
restart: unless-stopped
#gitea (8083)
2022-01-30 23:30:21 +00:00
gitea:
image: gitea/gitea:latest
2022-02-03 21:22:57 +00:00
container_name: gitea
2022-01-30 23:30:21 +00:00
environment:
- USER_UID=1000
- USER_GID=1000
ports:
- "127.0.0.1:8083:3000"
2022-01-30 23:30:21 +00:00
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
2022-01-17 19:57:09 +00:00
#Websites luke-else.co.uk (8000) snexo.co.uk (8001)
luke-else.co.uk:
image: "php:apache"
2022-02-03 21:22:57 +00:00
container_name: luke-else.co.uk
2022-01-17 19:57:09 +00:00
ports:
2022-01-17 21:45:24 +00:00
- "127.0.0.1:8000:80"
2022-01-17 19:57:09 +00:00
volumes:
- ./luke-else.co.uk/:/var/www/html
restart: unless-stopped
snexo.co.uk:
image: "php:apache"
2022-02-03 21:22:57 +00:00
container_name: snexo.co.uk
2022-01-17 19:57:09 +00:00
ports:
- "8001:80"
2022-01-17 19:57:09 +00:00
volumes:
- ./snexo.co.uk/:/var/www/html
restart: unless-stopped