Commit Graph
16 Commits
Author SHA1 Message Date
Birkhoff Lee 9b5125d440 Merge branch 'master' of https://github.com/bytefury/crater 2019-12-11 12:45:03 +08:00
Birkhoff Lee 2899021804 Update example env in accordance w/ Docker setup 2019-12-10 23:53:28 +08:00
Birkhoff Lee d8f6d03d1e Docker: rename nginx container name 2019-12-10 23:52:23 +08:00
Birkhoff Lee c474e98925 Docker: copy example env file when building 2019-12-10 23:40:59 +08:00
Birkhoff Lee 3692373cd2 Docker: switch from passport:install to passport:keys during build 2019-12-09 19:25:57 +08:00
Birkhoff Lee 0c71356f59 Docker: remove migration instruction 2019-12-04 18:31:06 +08:00
Birkhoff Lee e539bb501d Docker: persistant database storage in example docker-compose.yaml 2019-12-04 17:22:59 +08:00
Birkhoff Lee 2fcd169270 Downgrade Docker image php version to 7.3.12 2019-12-04 17:19:16 +08:00
Birkhoff Lee 14d71fedb3 Rename docker-compose.yml.example -> docker-compose.yaml.example 2019-12-04 14:54:28 +08:00
Birkhoff Lee 7fe9a4c2a2 Fix Dockerfile and docker-compose.yml
1. Generate a testing SQLite db on build
2. Optimize image layer caching
3. Fix permissions
4. Simplify nginx configuration
5. Fix nginx infinite redirect loop (couldn't access app folder)
2019-12-04 14:49:57 +08:00
Birkhoff Lee 7b697a477e Fix MariaDB config in Docker compose
by specifying a root password.
2019-12-04 11:20:50 +08:00
Birkhoff Lee 146cf835b9 Fix composer install in Dockerfile 2019-12-04 08:59:01 +08:00
Birkhoff Lee ec87e72547 Add .dockerignore file
This excludes unnecessary files for production use on Docker image
build.
2019-12-04 08:26:31 +08:00
Birkhoff Lee bf2e8c9c99 Use multi-stage build for Docker image
1. Allows to build the composer dependencies with official composer img
2. php-fpm --nodaemonize: Force to stay in foreground and ignore daemo-
   nize option from configuration file
2019-12-04 08:23:11 +08:00
Birkhoff Lee b6096aadfa Add MariaDB to docker-compose example
1. Gives an example set up of a MySQL database in docker-compose
2. `php` now depends on `db`, and `nginx` depends on `php`. This
ensures the integrity of the stack.
2019-12-03 21:31:56 +08:00
Birkhoff Lee 1cbc41c3ce Simplify docker-ext-install in Dockerfile 2019-12-03 20:24:54 +08:00