Add compose file for local docker dev
This commit is contained in:
parent
b415c90322
commit
c5fdbc0ffb
2 changed files with 22 additions and 0 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -3,6 +3,17 @@ name: CI
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal 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"
|
Loading…
Reference in a new issue