2023-05-04 15:12:17 +08:00
|
|
|
services:
|
|
|
|
flarum:
|
|
|
|
container_name: ${CONTAINER_NAME}
|
2023-05-16 17:47:57 +08:00
|
|
|
restart: always
|
2023-05-04 15:12:17 +08:00
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- "${PANEL_APP_PORT_HTTP}:8000"
|
|
|
|
volumes:
|
2023-07-13 15:34:02 +08:00
|
|
|
- ./data:/data
|
2023-05-04 15:12:17 +08:00
|
|
|
environment:
|
|
|
|
- TZ=Asia/Shanghai
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- MEMORY_LIMIT=256M
|
|
|
|
- UPLOAD_MAX_SIZE=256M
|
|
|
|
- CLEAR_ENV=yes
|
|
|
|
- OPCACHE_MEM_SIZE=128M
|
|
|
|
- LISTEN_IPV6=true
|
|
|
|
- REAL_IP_FROM=0.0.0.0/32
|
|
|
|
- DB_HOST=${PANEL_DB_HOST}
|
2023-09-04 16:16:20 +08:00
|
|
|
- DB_PORT=${PANEL_DB_PORT}
|
2023-05-04 15:12:17 +08:00
|
|
|
- DB_NAME=${PANEL_DB_NAME}
|
|
|
|
- DB_USER=${PANEL_DB_USER}
|
|
|
|
- DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
|
|
|
|
- DB_PREFIX=${PANEL_DB_PREFIX}
|
|
|
|
- DB_NOPREFIX=false
|
|
|
|
- DB_TIMEOUT=60
|
2023-05-16 17:47:57 +08:00
|
|
|
- FLARUM_BASE_URL=${FLARUM_EXTERNAL_URL}
|
2024-01-03 11:03:05 +08:00
|
|
|
image: crazymax/flarum:1.8.3
|
2023-05-04 15:12:17 +08:00
|
|
|
labels:
|
2023-07-13 15:34:02 +08:00
|
|
|
createdBy: "Apps"
|
2023-05-04 15:12:17 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|