diff --git a/docker-compose.yml b/docker-compose.yml index 94acfe7..c09ca60 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: '3.8' services: ppanel-server: @@ -17,28 +17,6 @@ services: networks: - ppanel-network - ppanel-admin-web: - image: ppanel/ppanel-admin-web:beta - container_name: ppanel-admin-web - ports: - - '3000:3000' - environment: - # Replace with actual API endpoint if needed - NEXT_PUBLIC_API_URL: https://api.example.com - networks: - - ppanel-network - - ppanel-user-web: - image: ppanel/ppanel-user-web:beta - container_name: ppanel-user-web - ports: - - '3001:3000' - environment: - # Replace with actual API endpoint if needed - NEXT_PUBLIC_API_URL: https://api.example.com - networks: - - ppanel-network - mysql: image: mysql:8.0.23 container_name: mysql_db @@ -77,6 +55,24 @@ services: networks: - ppanel-network + ppanel-admin-web: + image: ppanel/ppanel-admin-web:beta + container_name: ppanel-admin-web + ports: + - '3000:3000' + environment: + # Replace with actual API endpoint if needed + NEXT_PUBLIC_API_URL: https://api.example.com + + ppanel-user-web: + image: ppanel/ppanel-user-web:beta + container_name: ppanel-user-web + ports: + - '3001:3000' + environment: + # Replace with actual API endpoint if needed + NEXT_PUBLIC_API_URL: https://api.example.com + networks: ppanel-network: driver: bridge diff --git a/ppanel-server.yml b/ppanel-server.yml index 650ecd8..790657f 100644 --- a/ppanel-server.yml +++ b/ppanel-server.yml @@ -1,4 +1,4 @@ -version: '3' +version: '3.8' services: ppanel-server: @@ -30,14 +30,14 @@ services: - "3306:3306" volumes: - ./docker/mysql:/var/lib/mysql - command: --default-authentication-plugin=mysql_native_password - networks: - - ppanel-network + command: --default-authentication-plugin=mysql_native_password --bind-address=0.0.0.0 healthcheck: test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-prootpassword"] interval: 10s timeout: 5s retries: 3 + networks: + - ppanel-network redis: image: redis:7 @@ -55,7 +55,6 @@ services: networks: - ppanel-network - networks: ppanel-network: driver: bridge