Updated container ports and added gitea

This commit is contained in:
Luke Else 2022-02-07 09:52:01 +00:00
parent d2c7ac5962
commit cdc9d0b8c4

View File

@ -10,7 +10,7 @@ services:
# These ports are in format <host-port>:<container-port> # These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port - '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port - '443:443' # Public HTTPS Port
- '127.0.0.1:8080:81' # Admin Web Port - '8080:81' # Admin Web Port
# Add any other Stream port you want to expose # Add any other Stream port you want to expose
# - '21:21' # FTP # - '21:21' # FTP
# Uncomment the next line if you uncomment anything in the section # Uncomment the next line if you uncomment anything in the section
@ -39,7 +39,7 @@ services:
- ./mongo/:/data/db - ./mongo/:/data/db
restart: unless-stopped restart: unless-stopped
#MySQL (3306) + phpMyAdmin (8081) #MySQL (3306) + phpMyAdmin ()
mysql: mysql:
image: "mysql" image: "mysql"
container_name: MySQL container_name: MySQL
@ -57,31 +57,37 @@ services:
container_name: phpMyAdmin container_name: phpMyAdmin
environment: environment:
PMA_HOST: mysql PMA_HOST: mysql
ports:
- "127.0.0.1:8081:80"
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- mysql - mysql
#Bitwarden rs (8082) #Bitwarden rs ()
bitwarden: bitwarden:
image: "vaultwarden/server:latest" image: "vaultwarden/server:latest"
container_name: vaultwarden container_name: vaultwarden
ports:
- "127.0.0.1:8082:80"
volumes: volumes:
- ./bitwarden/:/data/ - ./bitwarden/:/data/
restart: unless-stopped restart: unless-stopped
#gitea (8083) #gitea (222)
gitea: gitea:
image: gitea/gitea:latest image: gitea/gitea:latest
container_name: gitea container_name: gitea
environment: environment:
- APP_NAME="gitea"
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- USER=git
- RUN_MODE=prod
- DOMAIN=git.luke-else.co.uk
- SSH_DOMAIN=git.luke-else.co.uk
- HTTP_PORT=3000
- ROOT_URL=https://git.luke-else.co.uk
- SSH_PORT=222
- SSH_LISTEN_PORT=22
- DB_TYPE=sqlite3
ports: ports:
- "127.0.0.1:8083:3000" - "222:22"
volumes: volumes:
- ./gitea:/data - ./gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
@ -92,8 +98,6 @@ services:
luke-else.co.uk: luke-else.co.uk:
image: "php:apache" image: "php:apache"
container_name: luke-else.co.uk container_name: luke-else.co.uk
ports:
- "127.0.0.1:8000:80"
volumes: volumes:
- ./luke-else.co.uk/:/var/www/html - ./luke-else.co.uk/:/var/www/html
restart: unless-stopped restart: unless-stopped
@ -101,8 +105,6 @@ services:
snexo.co.uk: snexo.co.uk:
image: "php:apache" image: "php:apache"
container_name: snexo.co.uk container_name: snexo.co.uk
ports:
- "127.0.0.1:8001:80"
volumes: volumes:
- ./snexo.co.uk/:/var/www/html - ./snexo.co.uk/:/var/www/html
restart: unless-stopped restart: unless-stopped