oliverdavies.uk/docker-compose.yaml

40 lines
1.1 KiB
YAML
Raw Normal View History

2021-06-30 07:00:00 +00:00
services:
app:
2021-07-03 22:00:45 +00:00
build:
context: .
dockerfile: tools/docker/images/Dockerfile
target: app
command: generate --port "${SCULPIN_PORT:-80}" --url "${SCULPIN_URL:-http://localhost}" --env "${SCULPIN_ENV:-dev}" "${SCULPIN_GENERATE_ARGS}"
2021-06-30 07:00:00 +00:00
volumes:
- assets:/app/source/build
2021-06-30 07:00:00 +00:00
- .:/app
- "${DOCKER_OUTPUT_VOLUME:-./output_prod:/app/output_prod}"
ports:
- "${SCULPIN_PORT:-80}:${SCULPIN_PORT:-80}"
env_file:
- .env
depends_on:
- assets
2021-06-30 07:00:00 +00:00
2021-06-30 07:00:00 +00:00
assets:
image: node:14-alpine
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: {}