1
Fork 0

Add compose file for local docker dev

This commit is contained in:
Jake Howard 2020-05-10 16:50:03 +01:00
parent b415c90322
commit c5fdbc0ffb
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 22 additions and 0 deletions

View file

@ -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:

11
docker-compose.yml Normal file
View file

@ -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"