Fix(domserver): php being php

This commit is contained in:
2025-04-06 19:05:13 +08:00
parent 21a5b1b4f6
commit 81c23bc103
7 changed files with 66 additions and 12 deletions

View File

@@ -11,11 +11,7 @@ services:
- "./data/mariadb:/var/lib/mysql"
- "./config/mysql:/etc/mysql/conf.d:ro"
domserver:
build:
context: .
dockerfile_inline: |
FROM domjudge/domserver:{{ domserver_version }}
COPY ./config/php/domjudge.conf /etc/php/8.2/fpm/pool.d/domjudge.conf
image: domjudge/domserver:{{ domserver_version }}
environment:
MYSQL_HOST: mariadb
MYSQL_USER: domjudge
@@ -24,5 +20,9 @@ services:
MYSQL_ROOT_PASSWORD: "{{ mysql_root_password }}"
CONTAINER_TIMEZONE: Asia/Taipei
restart: always
volumes:
- "./config/php/domjudge.conf:/etc/php/8.2/fpm/pool.d/domjudge.conf"
depends_on:
- mariadb
ports:
- "8080:80"
- "127.0.0.1:8080:80"