Files
appointment_to_examiner/docker-compose.yml

43 lines
672 B
YAML

version: '3.8'
services:
server:
build: ./server
ports:
- "10090:8080"
environment:
- mongoURI=mongodb://mongo:27017/appointment_to_examiner
- CORS_ORIGIN=http://localhost:10091
depends_on:
- mongo
networks:
- app-network
client:
build:
context: ./client
args:
- REACT_APP_API_URL=/api
ports:
- "10091:80"
depends_on:
- server
networks:
- app-network
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mongo-data: