mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
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!
43 lines
854 B
YAML
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:
|