Create docker-compose.yml

This commit is contained in:
Luke Else 2022-01-17 19:57:09 +00:00
parent 206ee7c5c3
commit 5edda1c8ee

60
docker-compose.yml Normal file
View File

@ -0,0 +1,60 @@
version: '3.7'
services:
#MongoDB (27017)
mongodb:
image: "mongo:latest"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- "27017:27017"
volumes:
- ./mongo/:/data/db
restart: unless-stopped
#MySQL (3306) + phpMyAdmin (8080)
mysql:
image: "mysql"
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: test_db
ports:
- "3306:3306"
volumes:
- ./mysql/:/var/lib/mysql
restart: unless-stopped
phpMyAdmin:
image: "phpmyadmin/phpmyadmin:latest"
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: rootpassword
ports:
- "8080:80"
restart: unless-stopped
#Bitwarden rs (8081)
bitwarden:
image: "vaultwarden/server:latest"
ports:
- "8081:80"
volumes:
- ./bitwarden/:/data/
restart: unless-stopped
#Websites luke-else.co.uk (8000) snexo.co.uk (8001)
luke-else.co.uk:
image: "php:apache"
ports:
- "8000:80"
volumes:
- ./luke-else.co.uk/:/var/www/html
restart: unless-stopped
snexo.co.uk:
image: "php:apache"
ports:
- "8001:80"
volumes:
- ./snexo.co.uk/:/var/www/html
restart: unless-stopped