1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-31 10:56:24 -07:00
gochan/docker/docker-compose-mysql.yml

42 lines
916 B
YAML

services:
gochan:
build:
context: ..
dockerfile: docker/Dockerfile
args:
- GOCHAN_PORT=80
- GOCHAN_SITE_HOST=127.0.0.1
- GOCHAN_DB_TYPE=mysql
- GOCHAN_DB_HOST=gochan-mysql:3306
container_name: gochan-server
ports:
- "80:80"
volumes:
- ./volumes/gochan/log:/var/log/gochan
- ./volumes/gochan/www:/var/www/gochan
- ./volumes/gochan/config:/etc/gochan
networks:
- gochan-bridge
depends_on:
- mysql
mysql:
image: mysql:8.0-bookworm
container_name: gochan-mysql
tty: true
expose:
- "3306"
networks:
- gochan-bridge
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=gochan
- MYSQL_USER=gochan
- MYSQL_PASSWORD=gochan
volumes:
- ./volumes/mysql:/var/lib/mysql
networks:
gochan-bridge:
name: gochan-bridge
driver: bridge