From c5fdbc0ffb57b55ccfc4fba3198ed25beeb94a46 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 10 May 2020 16:50:03 +0100 Subject: [PATCH] Add compose file for local docker dev --- .github/workflows/ci.yml | 11 +++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docker-compose.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58344ca..3349f60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,17 @@ name: CI on: [push, pull_request] jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Build image + run: docker-compose build + + - name: Show image info + run: docker images + build: runs-on: ubuntu-latest steps: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..55074e5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "2.3" + +services: + website: + build: + context: . + volumes: + - "./public:/usr/share/nginx/html:ro" + - "./nginx.conf:/etc/nginx/nginx.conf:ro" + ports: + - "80:80"