2024-09-10 09:50:11 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
database-init:
|
2024-09-20 17:28:55 +00:00
|
|
|
build:
|
|
|
|
context: ../api
|
2024-09-21 05:43:34 +00:00
|
|
|
pull_policy: build
|
2024-09-10 09:50:11 +00:00
|
|
|
volumes:
|
|
|
|
- ../api/src:/app/src
|
|
|
|
- ../api/migrations:/app/migrations
|
|
|
|
# - ../api/node_modules:/app/node_modules
|
|
|
|
|
|
|
|
api:
|
2024-09-20 17:28:55 +00:00
|
|
|
build:
|
|
|
|
context: ../api
|
2024-09-27 10:22:18 +00:00
|
|
|
target: development
|
2024-09-21 05:43:34 +00:00
|
|
|
pull_policy: build
|
2024-09-10 09:50:11 +00:00
|
|
|
ports:
|
|
|
|
- ${API_PORT}:3000
|
|
|
|
- 9229:9229 # vscode debug port
|
|
|
|
volumes:
|
|
|
|
- ../api/src:/app/src
|
|
|
|
- ../api/migrations:/app/migrations
|
|
|
|
#- ../api/node_modules:/app/node_modules
|
|
|
|
command: ["npm", "run", "start:debug"]
|
|
|
|
|
|
|
|
mongo-express:
|
|
|
|
container_name: mongoUi
|
|
|
|
image: mongo-express:1-20
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- ${APP_MONGO_EXPRESS_PORT}:8081
|
|
|
|
networks:
|
|
|
|
- db-network
|
|
|
|
environment:
|
|
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USER}
|
|
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_PASSWORD}
|
|
|
|
ME_CONFIG_MONGODB_URL: ${MONGO_URI}
|
|
|
|
|
2024-09-20 17:28:55 +00:00
|
|
|
hexabot-frontend:
|
|
|
|
container_name: frontend
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: ./frontend/Dockerfile
|
2024-09-27 08:44:08 +00:00
|
|
|
target: development
|
2024-09-21 05:43:34 +00:00
|
|
|
pull_policy: build
|
2024-09-27 08:44:08 +00:00
|
|
|
volumes:
|
2024-09-27 09:38:08 +00:00
|
|
|
- ../frontend/:/app/frontend/
|
2024-09-20 17:28:55 +00:00
|
|
|
|
2024-09-10 09:50:11 +00:00
|
|
|
widget:
|
|
|
|
build:
|
2024-09-20 17:28:55 +00:00
|
|
|
context: ../widget
|
2024-09-10 09:50:11 +00:00
|
|
|
target: development
|
2024-09-21 05:43:34 +00:00
|
|
|
pull_policy: build
|
2024-09-10 09:50:11 +00:00
|
|
|
volumes:
|
|
|
|
- ../widget/src:/app/src
|
|
|
|
ports:
|
|
|
|
- ${APP_WIDGET_PORT}:5173
|