12345678910111213141516171819202122232425262728293031323334 |
- version: '2'
- services:
- backend:
- build: ./backend
- ports:
- - "${BACKEND_PORT}:8080"
- volumes:
- - ./backend:/opt/app
- - ./log:/opt/log
- links:
- - mongo
- - redis
- frontend:
- build: ./frontend
- ports:
- - "${FRONTEND_PORT}:80"
- volumes:
- - ./frontend:/opt/app
- mongo:
- image: mongo
- ports:
- - "27018:27018"
- command: "--auth"
- mongoclient:
- image: mongoclient/mongoclient
- ports:
- - "3000:3000"
- redis:
- image: redis
- command: "--notify-keyspace-events Ex --requirepass ${REDIS_PASSWORD}"
- volumes:
- - .redis:/data
- ports:
- - "6371:6371"
|