1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 19:16:23 -07:00
gochan/docker/docker-compose-mariadb.yaml

30 lines
640 B
YAML

version: '3.2'
services:
gochan:
build:
context: ..
dockerfile: docker/Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- ../:/opt/gochan # note: this doesn't work too well in MacOS.
environment:
- DBTYPE=mysql
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
- DATABASE_NAME=gochan
- DATABASE_USER=gochan
- DATABASE_PASSWORD=gochan
depends_on:
- mysql
mysql:
expose:
- "3306"
build: ./alpineMysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=gochan
- MYSQL_USER=gochan
- MYSQL_PASSWORD=gochan