version: '2.0'
networks:
piwigo-net:
services:
db:
image: mysql
container_name: piwigo-mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=test
- cMYSQL_DATABASE=test
- cMYSQL_USER=testc
- cMYSQL_PASSWORD=test
volumes:
- ./database:/var/lib/mysql # 设置数据库存储位置
networks:
- piwigo-net
piwigo:
image: lscr.io/linuxserver/piwigo:latest
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ./config:/config
- ./gallery:/gallery
ports:
- 2344:80
- 2345:44
restart: unless-stopped
networks:
- piwigo-net
上一篇
docker不输出log
2024-07-25
下一篇
assemblyReference踩坑记录
2024-07-17