Revert weird changes and made it work with volumes again
This commit is contained in:
parent
9110c72fe5
commit
d9986ec331
1 changed files with 15 additions and 13 deletions
|
@ -11,10 +11,9 @@ services:
|
||||||
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
|
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
|
||||||
- "MYSQL_USER=pterodactyl"
|
- "MYSQL_USER=pterodactyl"
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
|
||||||
- default
|
- default
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql
|
- db:/var/lib/mysql
|
||||||
|
|
||||||
http:
|
http:
|
||||||
build:
|
build:
|
||||||
|
@ -23,15 +22,14 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- "php"
|
- "php"
|
||||||
expose:
|
ports:
|
||||||
- 80
|
- 80:80
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
|
||||||
- default
|
- default
|
||||||
volumes:
|
volumes:
|
||||||
- ./env:/var/www/html/env
|
- env:/var/www/html/env
|
||||||
- ./panel:/var/www/html/pterodactyl
|
- panel:/var/www/html/pterodactyl
|
||||||
- ./storage:/var/www/html/pterodactyl/storage
|
- storage:/var/www/html/pterodactyl/storage
|
||||||
|
|
||||||
php:
|
php:
|
||||||
build:
|
build:
|
||||||
|
@ -43,9 +41,9 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
volumes:
|
volumes:
|
||||||
- ./env:/var/www/html/env
|
- env:/var/www/html/env
|
||||||
- ./panel:/var/www/html/pterodactyl
|
- panel:/var/www/html/pterodactyl
|
||||||
- ./storage:/var/www/html/pterodactyl/storage
|
- storage:/var/www/html/pterodactyl/storage
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
@ -56,5 +54,9 @@ services:
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
traefik:
|
|
||||||
external: true
|
volumes:
|
||||||
|
db:
|
||||||
|
env:
|
||||||
|
panel:
|
||||||
|
storage:
|
||||||
|
|
Reference in a new issue