From d9986ec331d53669ff81bbe8951e6b2ee4a55cbe Mon Sep 17 00:00:00 2001 From: saibotk Date: Sat, 10 Nov 2018 16:03:32 +0100 Subject: [PATCH] Revert weird changes and made it work with volumes again --- docker-compose.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index fbed868..9fcca4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,10 +11,9 @@ services: - "MYSQL_RANDOM_ROOT_PASSWORD=yes" - "MYSQL_USER=pterodactyl" networks: - - traefik - default volumes: - - ./db:/var/lib/mysql + - db:/var/lib/mysql http: build: @@ -23,15 +22,14 @@ services: restart: unless-stopped depends_on: - "php" - expose: - - 80 + ports: + - 80:80 networks: - - traefik - default volumes: - - ./env:/var/www/html/env - - ./panel:/var/www/html/pterodactyl - - ./storage:/var/www/html/pterodactyl/storage + - env:/var/www/html/env + - panel:/var/www/html/pterodactyl + - storage:/var/www/html/pterodactyl/storage php: build: @@ -43,9 +41,9 @@ services: networks: - default volumes: - - ./env:/var/www/html/env - - ./panel:/var/www/html/pterodactyl - - ./storage:/var/www/html/pterodactyl/storage + - env:/var/www/html/env + - panel:/var/www/html/pterodactyl + - storage:/var/www/html/pterodactyl/storage redis: image: redis:alpine @@ -56,5 +54,9 @@ services: networks: default: driver: bridge - traefik: - external: true + +volumes: + db: + env: + panel: + storage: