Add Home service configuration and deployment setup

This commit is contained in:
Simon Larsen
2024-09-16 08:11:21 -07:00
parent dc37d723e6
commit f728a94a80
15 changed files with 311 additions and 10 deletions

View File

@@ -160,6 +160,24 @@ services:
dockerfile: ./TestServer/Dockerfile
home:
volumes:
- ./Home:/usr/src/app
# Use node modules of the container and not host system.
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
- /usr/src/app/node_modules/
- ./Common:/usr/src/Common
- /usr/src/Common/node_modules/
extends:
file: ./docker-compose.base.yml
service: home
ports:
- '9212:9229' # Debugging port.
build:
network: host
context: .
dockerfile: ./Home/Dockerfile
app:
volumes:
- ./App:/usr/src/app
@@ -167,10 +185,7 @@ services:
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
- /usr/src/app/node_modules/
- ./Common:/usr/src/Common
- /usr/src/Common/node_modules/
extends:
file: ./docker-compose.base.yml
service: app