1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 19:16:23 -07:00
gochan/docker
2025-04-20 01:08:58 -07:00
..
.gitignore Remove incomplete SyncForMac Docker stuff, start splitting docker-compose into 4 files (mariadb, mysql, postgresql, sqlite) 2024-10-27 23:21:44 -07:00
build-image.sh Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
docker-compose-mariadb.yml Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
docker-compose-mysql.yml Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
docker-compose-postgres.yml Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
docker-compose-sqlite.yml Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
Dockerfile Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
README.md Update Docker README file with more info 2025-04-20 01:08:58 -07:00
startup.sh Use single template json file, make necessary changes to the configuration for docker in build-images.sh, and add /etc/gochan/ as a volume 2025-04-20 00:14:16 -07:00
wait-for.sh Fixes Docker. Adds docker-compose to run a container with mariadb 2020-04-02 21:56:29 -06:00

Docker usage info

To start gochan using Docker with one of the .yml files, run docker compose -f docker-compose-<dbtype>.yml up. It will build and spin up a container for the gochan server and a container for the database, with the exception of SQLite, which is loaded from a file.

When the containers are started, they will mount volumes in the volumes directory for access to gochan logs, the document root, the configuration, and database data files.

See docker-compose-*.yml files for example usage

Dockerfile args

Arg Default value Description
GOCHAN_PORT 80 The port that the server will listen on. You will want to expose the same port to the host.
GOCHAN_SITE_HOST 127.0.0.1 The host that the server will expect incoming requests to be for. for example, if your server is at 1.2.3.4 but is behind Cloudflare using domain example.com, you will need to set this to example.com
GOCHAN_DB_TYPE none This mostly corresponds to the DBtype config value, the SQL driver name to be used. The exception being "mariadb", which should be "mysql" in gochan.json. Here, "mysql" refers specifically to the mainline MySQL implementation.
GOCHAN_DB_HOST none The host and port to connect to the database for MySQL/MariaDB, Postgresql, or the path to the SQLite database file.