...
 
Commits (2)
......@@ -2,14 +2,23 @@
# b5 Taskfile, see https://git.team23.de/build/b5 for details
# Basic housekeeping tasks
task:install() {
true
task:install(){
template:render --overwrite ask-if-older templates/config.local.yml.jinja2 config.local.yml
docker:install
docker:command:npm --force-run install
}
task:update() {
true
task:update(){
docker:update
docker:command:npm --force-run install
}
task:run() {
true
docker:docker-compose up "$@"
}
task:halt() {
docker:docker-compose down "$@"
}
# This is the central configuration for all tools we use/execute. It is parsed inside
# the Taskfile, too. See $CONFIG_project_name for example.
version: 1.1.4
project:
name: how-to-docker
key: howToDocker
url: http://www.doesnotexistyet.com/
paths:
web: ../web
application:
root_path: ../web
hook_path: ../.git/hooks
deploy_path: ../
npm:
from: ../web/package.json
to: docker/node/
# You could add some modules:
#modules:
\ No newline at end of file
modules:
virtualenv:
class: virtualenv
base_path: .
python_bin: python2
docker:
docker_compose_config_overrides:
- localhost
commands:
npm:
bin: npm
service: web
workdir: /app/web/
template:
version: '3.2'
services:
web:
networks:
- default
- traefik_gateway
labels:
- traefik.enable=true
- traefik.port=4200
- traefik.docker.network=traefik_gateway
api:
networks:
- default
- traefik_gateway
labels:
- traefik.enable=true
- traefik.port=3000
- traefik.docker.network=traefik_gateway
networks:
default:
traefik_gateway:
external: true
version: '3.2'
services:
web:
build: docker/node
tty: true
volumes:
- ../:/app:delegated
command:
- npm
- run
- web
depends_on:
- api
api:
build: docker/node
tty: true
volumes:
- ../:/app:delegated
command:
- npm
- run
- api
FROM node:10
<<<<<<< HEAD
WORKDIR /app/web
=======
WORKDIR web/app
>>>>>>> 25a4c6341ac53222c5912745cfb053f008521027