This commit is contained in:
web@ppanel
2024-11-22 21:39:41 +07:00
parent 0a2078aa5c
commit d10d1b876b
2 changed files with 23 additions and 28 deletions

View File

@@ -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

View File

@@ -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