2024-10-17 17:29:11 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
kimai2:
|
|
|
|
image: kimai/kimai2:apache-2.23.0
|
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8001
|
2024-10-18 16:28:24 +08:00
|
|
|
env_file:
|
|
|
|
- /etc/1panel/envs/global.env
|
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
2024-10-17 17:29:11 +08:00
|
|
|
volumes:
|
|
|
|
- ${KIMAI2_ROOT_PATH}/data:/opt/kimai/var/data
|
|
|
|
- ${KIMAI2_ROOT_PATH}/plugins:/opt/kimai/var/plugins
|
2024-10-17 17:44:23 +08:00
|
|
|
environment:
|
2024-10-17 17:29:11 +08:00
|
|
|
- DATABASE_URL=mysql://${DB_USER}:${DB_USER_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}/${DB_NAME}?charset=utf8mb4
|