Ocelot-Social/docker-compose.override.yml
roschaefer 08244ab4b2 Address @mattwr18's review here:
https://github.com/Human-Connection/Human-Connection/pull/1543#pullrequestreview-287593264

Thinking about it, I really ask myself why I did not find this solution
earlier 🙈

Of course, you don't want to share the generated `buildDir`
with the host system. If you happen to share the `webapp/` folder,
simply point NuxtJS to a build directory somewhere else. Easy!
2019-09-12 22:56:52 +02:00

43 lines
854 B
YAML

version: "3.4"
services:
mailserver:
image: djfarrelly/maildev
ports:
- 1080:80
networks:
- hc-network
webapp:
build:
context: webapp
target: build-and-test
volumes:
- ./webapp:/nitro-web
environment:
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
command: yarn run dev
backend:
build:
context: backend
target: build-and-test
volumes:
- ./backend:/nitro-backend
command: yarn run dev
environment:
- SMTP_HOST=mailserver
- SMTP_PORT=25
- SMTP_IGNORE_TLS=true
- "DEBUG=${DEBUG}"
maintenance:
image: humanconnection/maintenance:latest
build:
context: webapp
dockerfile: Dockerfile.maintenance
networks:
- hc-network
ports:
- 3503:80
networks:
hc-network: