1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 10:56:25 -07:00
gochan/docker
2024-11-18 13:04:15 -08: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 Add PostgreSQL docker compose file 2024-11-07 11:25:01 -08:00
docker-compose-mariadb.yml Move container package installation to a script, add MySQL compose file 2024-11-05 13:10:38 -08:00
docker-compose-mysql.yml Move container package installation to a script, add MySQL compose file 2024-11-05 13:10:38 -08:00
docker-compose-postgres.yml Add PostgreSQL docker compose file 2024-11-07 11:25:01 -08:00
docker-compose-sqlite.yml Add docker compose file for sqlite3 DB 2024-11-07 12:11:47 -08:00
Dockerfile Add PostgreSQL docker compose file 2024-11-07 11:25:01 -08:00
gochan-docker.json Remove no longer used build-image.sh and update startup.sh to build the execcutable if it doesn't exist 2024-10-28 11:30:47 -07:00
README.md Update docker README with usage info 2024-11-18 13:04:15 -08:00
startup.sh Move container package installation to a script, add MySQL compose file 2024-11-05 13:10:38 -08: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, and database data files.

Boring stuff

Previously, gochan's default docker-compose.yml was divided into two services, gochan+nginx and db, which mainly supported MariaDB. Now, there are four options for docker-compose, one for each database provider (with MariaDB and MySQL separated). The SyncForMac container file appears to have been incomplete so it has been removed since I am unable to test its usefulness.

Nginx has also been removed, as it is not really necessary to run a gochan server. It is only really necessary if you want to serve HTTPS (which you should). For a dev environment, you can just use any of the provided docker-compose files. For a production server, you can run nginx outside Docker (or in a separate container) and just forward ports accordingly.