Configure Docker
networks:
learning:
driver: bridge
services:
bookstack:
image: lscr.io/linuxserver/bookstack:latest
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Tokyo
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=db_bookstack
- DB_USERNAME=db_bookstack
- DB_PASSWORD=<password>
- APP_KEY=<api-key>
- APP_URL=http://localhost:8082
ports:
- 8082:80
volumes:
- ./bookstack-config:/config
networks:
- learning
depends_on:
- mysql
mysql:
image: mysql:latest
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: <root-password>
MYSQL_DATABASE: db_bookstack
MYSQL_USER: db_bookstack
MYSQL_PASSWORD: <password>
ports:
- "3307:3306"
volumes:
- ./mysql-data:/var/lib/mysql
networks:
- learning
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
environment:
PMA_HOST: mysql
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: <root-password>
ports:
- "8081:80"
networks:
- learning
depends_on:
- mysql
No Comments