Files
OpenSign/docker-compose.yml
T
2023-10-22 01:37:25 +05:30

57 lines
1.1 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3.7'
services:
server:
build:
context: ./apps/OpenSignServer
dockerfile: Dockerfile
image: OpenSignServer-image
container_name: OpenSignServer-container
command: /usr/src/app/node_modules/.bin/nodemon server.js
volumes:
- ./apps/OpenSignServer/:/usr/src/app
- /usr/src/app/node_modules
ports:
- "5000:5000"
depends_on:
- mongo
env_file: ./OpenSignServer/.env
environment:
- NODE_ENV=development
networks:
- app-network
mongo:
image: mongo
volumes:
- data-volume:/data/db
ports:
- "27017:27017"
networks:
- app-network
client:
build:
context: ./apps/OpenSign
dockerfile: Dockerfile
image: OpenSign-image
container_name: OpenSign-container
command: npm start
volumes:
- ./apps/OpenSign/:/usr/app
- /usr/app/node_modules
depends_on:
- server
ports:
- "3000:3000"
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
data-volume:
node_modules:
web-root:
      driver: local