oliverdavies.uk/docker-compose.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

2021-06-30 07:00:00 +00:00
version: '2.4'
services:
proxy:
2021-07-26 22:40:01 +00:00
image: nginxproxy/nginx-proxy:alpine
volumes:
2021-07-26 22:40:01 +00:00
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- 80:80
2021-06-30 07:00:00 +00:00
app:
2021-07-03 22:00:45 +00:00
build:
context: .
dockerfile: tools/docker/images/Dockerfile
target: app
expose:
- 80
command:
- generate
- --server
- --watch
- --port
- '80'
- --url
2021-07-09 11:00:00 +00:00
- http://oliverdavies.localhost
2021-06-30 07:00:00 +00:00
volumes:
- assets:/app/source/build
2021-06-30 07:00:00 +00:00
- /app/output_dev
2021-06-30 07:00:00 +00:00
- .:/app
2021-07-26 22:40:01 +00:00
environment:
VIRTUAL_HOST: oliverdavies.localhost
2021-06-30 07:00:00 +00:00
2021-06-30 07:00:00 +00:00
assets:
2021-07-03 22:00:45 +00:00
image: node:14
2021-06-30 07:00:00 +00:00
volumes:
- assets:/node/source/build
2021-06-30 07:00:00 +00:00
- /node/node_modules
2021-06-30 07:00:00 +00:00
- ./assets:/node/assets
- ./Makefile:/node/Makefile
2021-06-30 07:00:00 +00:00
- ./package.json:/node/package.json
- ./package-lock.json:/node/package-lock.json
2021-06-30 07:00:00 +00:00
- ./postcss.config.js:/node/postcss.config.js
- ./source:/node/source
- ./tailwind.config.js:/node/tailwind.config.js
2021-06-30 07:00:00 +00:00
- ./tools/tailwindcss:/node/tools/tailwindcss
2021-06-30 07:00:00 +00:00
- ./webpack.config.js:/node/webpack.config.js
working_dir: /node
entrypoint: make
command:
- assets-watch
2021-06-30 07:00:00 +00:00
volumes:
assets: