oneuptime/docker-compose.copilot.yml

31 lines
896 B
YAML

services:
copilot:
volumes:
- ./Copilot:/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
- ./Model:/usr/src/Model
- ./CommonServer:/usr/src/CommonServer
- ./CommonUI:/usr/src/CommonUI
- /usr/src/Common/node_modules/
- /usr/src/CommonUI/node_modules/
- /usr/src/CommonServer/node_modules/
- /usr/src/Model/node_modules/
ports:
- '9985:9229' # Debugging port.
extends:
file: ./docker-compose.base.yml
service: copilot
environment:
- LOG_LEVEL=INFO
build:
network: host
context: .
dockerfile: ./Copilot/Dockerfile
networks:
oneuptime:
driver: bridge