-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
33 lines (31 loc) · 1.31 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3'
services:
mysql:
image: mariadb:10.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=app
- MYSQL_DATABASE=app
volumes:
- ./docker/timeout.cnf:/etc/mysql/conf.d/timeout.cnf
app:
build: ./
restart: always
depends_on:
- mysql
volumes:
- ./:/app
environment:
- FRONTEND_DIR=/app/docker/front_dist
- DATABASE_DSN=mysql+aiomysql://root:app@mysql:3306/app?charset=utf8mb4
- UPLOAD_PATH=/app/uploads
- TEMP_FILE_PATH=/app/temp_uploads
- ENABLE_DNS_LOG=True
- DNS_KEY=
- BEHIND_PROXY=False
- URL_PREFIX=/admin # admin panel's URL prefix, use http://example.com/admin/index.html to access it
- INIT_USER=admin:admin # admin user created after first startup
ports:
- "80:80" # or if you want to warp a reverse proxy, change BEHIND_PROXY=False to BEHIND_PROXY=True, and using `X-Real-IP` and `X-Real-Port` to transfer client ip and port
# - "53:53/udp" # dns port mapping setting, you need uncomment this to enable dns log function, and maybe need to specific ip address, more information see README.md
# - "127.0.0.1:8080:8080"