2024-07-31 13:53:38 +08:00
|
|
|
services:
|
|
|
|
2fauth:
|
2024-10-14 11:11:31 +08:00
|
|
|
image: 2fauth/2fauth:5.3.1
|
2024-07-31 13:53:38 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8000/tcp
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
volumes:
|
|
|
|
- ./data:/2fauth
|
|
|
|
environment:
|
|
|
|
- APP_NAME=${APP_NAME}
|
|
|
|
- APP_KEY=${APP_KEY}
|
|
|
|
- APP_URL=${APP_URL}
|
|
|
|
- IS_DEMO_APP=false
|
|
|
|
- LOG_CHANNEL=daily
|
|
|
|
- LOG_LEVEL=notice
|
|
|
|
- DB_DATABASE="/srv/database/database.sqlite"
|
|
|
|
- CACHE_DRIVER=file
|
|
|
|
- SESSION_DRIVER=file
|
|
|
|
- AUTHENTICATION_GUARD=web-guard
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|