Commit graph

15 commits

Author SHA1 Message Date
Oliver Davies 2ef976fa1c build(docker): use alpine for assets
[ci-skip]
2021-11-02 23:16:19 +00:00
Oliver Davies 7fbecb1728 build(docker): make Compose file more configurable
Allow for configuring volume mounts, ports, the site URL, and volume
mounts within the Docker Compose file using environment variables from
within and .env file.

This means that the same Docker Compose file could be used to generate
and serve the site locally using an anonymous volume, as well as
generate a one-time build into a local directory to be served by Apache
or Nginx on production.
2021-10-26 22:48:26 +01:00
Oliver Davies bd2910781c build(docker): make the web port configurable 2021-10-24 10:21:03 +01:00
Oliver Davies 61ec3db7b3 build(docker): remove the phpunit service 2021-10-24 10:18:52 +01:00
Oliver Davies ba935d861c build(docker): add a phpunit service 2021-10-07 09:03:49 +01:00
Oliver Davies 3b3b075ad1 Replace Traefik with Nginx [skip ci] 2021-07-26 23:40:01 +01:00
Oliver Davies 730398421a Ensure that assets are generated on first build 2021-07-16 12:33:16 +01:00
Oliver Davies 7c99281ae2 Fix the local proxy URL 2021-07-09 10:21:17 +01:00
Oliver Davies 17626df722 Use Traefik as a local reverse proxy
Use Traefik as a local reverse proxy so that the site can be accessed
from http://oliverdavies.localhost rather than http://localhost:8000,
which is the default for Sculpin.

I've also overridden the command used for the app service so that it
exposes port 80 and serves the site on that port, as well as configuring
the URL to match within the generated output.
2021-07-08 19:34:41 +01:00
Oliver Davies 1e66df30a1 Refactor the production Docker image 2021-07-03 23:36:09 +01:00
Oliver Davies f8e945d8ee Move the node Dockerfile into a sub-directory 2021-07-02 17:56:01 +01:00
Oliver Davies 175f9c4853 Fix assets directory in Docker and Webpack 2021-06-30 12:02:55 +01:00
Oliver Davies 1963c2e1d7 Rename node service to assets 2021-06-30 12:02:55 +01:00
Oliver Davies dc0a72c109 Update docker-compose.yaml 2021-06-30 12:02:55 +01:00
Oliver Davies 0d026da92c Add Docker Compose 2021-06-30 12:02:54 +01:00