/
NLObP
/
AAEmu
Обзор
Документация
Войти
/
NLObP
/
AAEmu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
docker-compose.yaml
114 строк
4 KB
Roger Barreto
Multi platform enablement for Net9 and Net8 (#1104)
29 ноя 2024, 21:22
Не верифицирован
29 ноя 2024, 21:22
e374e61
Код
Авторство
О чём код?
# If you want to use a Docker Volume : # Uncomment the line "db_data:/var/lib/mysql" and comment the line "./.server_files/AAEmu.Database/mysql:/var/lib/mysql" that are in the db services # Also uncomment the two volumes line at the end... This is useful if you use WSL Shell on Windows to launch the compose file. services: db: image: mysql:8.0.36 restart: unless-stopped # command: --default_authentication_plugin=mysql_native_password volumes: - ./SQL/aaemu_login.sql:/docker-entrypoint-initdb.d/aaemu_login.sql - ./SQL/aaemu_game.sql:/docker-entrypoint-initdb.d/aaemu_game.sql - ./SQL/examples/example-server.sql:/docker-entrypoint-initdb.d/example-server.sql - ./.server_files/AAEmu.Database/mysql:/var/lib/mysql # - db_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} ports: - 3306:3306 healthcheck: test: ["CMD-SHELL", "mysqladmin ping -h localhost -u root -p${DB_PASSWORD}" ] interval: 5s timeout: 5s retries: 20 adminer: image: adminer restart: unless-stopped environment: ADMINER_DEFAULT_DB_DRIVER: mysql ADMINER_DEFAULT_DB_HOST: db ADMINER_DESIGN: nette ports: - 8080:8080 depends_on: db: condition: service_healthy login: build: context: . dockerfile: ./AAEmu.Login/Dockerfile args: - CONFIGURATION=${BUILD_CONFIGURATION} - FRAMEWORK=${BUILD_FRAMEWORK} - RUNTIME=${BUILD_RUNTIME} - DB_HOST=db - DB_PORT=3306 - DB_USER=${DB_USER} - DB_PASSWORD=${DB_PASSWORD} image: aaemu-login:${PROJECT_VERSION_PREFIX}-${PROJECT_VERSION_SUFFIX} restart: unless-stopped volumes: - "./.server_files/AAEmu.Login/Config.json:/app/Config.json:ro" environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1 ports: - 1237:1237 develop: watch: - path: ./AAEmu.Login action: rebuild healthcheck: test: ["CMD-SHELL", "ping -c 1 db || exit 1"] interval: 5s timeout: 5s retries: 20 depends_on: db: condition: service_healthy game: build: context: . dockerfile: ./AAEmu.Game/Dockerfile args: - CONFIGURATION=${BUILD_CONFIGURATION} - FRAMEWORK=${BUILD_FRAMEWORK} - RUNTIME=${BUILD_RUNTIME} - DB_HOST=db - DB_PORT=3306 - DB_USER=${DB_USER} - DB_PASSWORD=${DB_PASSWORD} - LOGIN_HOST=login - LOGIN_PORT=1234 image: aaemu-game:${PROJECT_VERSION_PREFIX}-${PROJECT_VERSION_SUFFIX} restart: unless-stopped volumes: - "./.server_files/AAEmu.Game/ClientData:/app/ClientData:ro" - "./.server_files/AAEmu.Game/Data:/app/Data:ro" - "./.server_files/AAEmu.Game/Configurations:/app/Configurations:ro" - "./.server_files/AAEmu.Game/Config.json:/app/Config.json:ro" environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1 ports: - 1239:1239 - 1250:1250 develop: watch: - path: ./AAEmu.Game action: rebuild healthcheck: test: ["CMD-SHELL", "mysql aaemu_game -h db -u root -p${DB_PASSWORD}"] interval: 5s timeout: 5s retries: 20 depends_on: db: condition: service_healthy login: condition: service_healthy # volumes: # db_data: