Update docker-compose.yml

This commit is contained in:
Luke Else 2022-01-17 21:45:24 +00:00
parent 65fb8623e3
commit 14c4251dfd

View File

@ -8,7 +8,7 @@ services:
MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports: ports:
- "27017:27017" - "127.0.0.1:27017:27017"
volumes: volumes:
- ./mongo/:/data/db - ./mongo/:/data/db
restart: unless-stopped restart: unless-stopped
@ -19,7 +19,7 @@ services:
MYSQL_ROOT_PASSWORD: rootpassword MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: test_db MYSQL_DATABASE: test_db
ports: ports:
- "3306:3306" - "127.0.0.1:3306:3306"
volumes: volumes:
- ./mysql/:/var/lib/mysql - ./mysql/:/var/lib/mysql
restart: unless-stopped restart: unless-stopped
@ -29,13 +29,13 @@ services:
environment: environment:
PMA_HOST: mysql PMA_HOST: mysql
ports: ports:
- "8080:80" - "127.0.0.1:8080:80"
restart: unless-stopped restart: unless-stopped
#Bitwarden rs (8081) #Bitwarden rs (8081)
bitwarden: bitwarden:
image: "vaultwarden/server:latest" image: "vaultwarden/server:latest"
ports: ports:
- "8081:80" - "127.0.0.1:8081:80"
volumes: volumes:
- ./bitwarden/:/data/ - ./bitwarden/:/data/
restart: unless-stopped restart: unless-stopped
@ -43,7 +43,7 @@ services:
luke-else.co.uk: luke-else.co.uk:
image: "php:apache" image: "php:apache"
ports: ports:
- "8000:80" - "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
@ -51,7 +51,7 @@ services:
snexo.co.uk: snexo.co.uk:
image: "php:apache" image: "php:apache"
ports: ports:
- "8001:80" - "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