Files
appointment_to_examiner/docker-compose.yml

48 lines
897 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
- JWT_SECRET=${JWT_SECRET}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GOOGLE_REFRESH_TOKEN=${GOOGLE_REFRESH_TOKEN}
- EMAIL_USERNAME=${EMAIL_USERNAME}
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: