123456789101112131415161718192021222324252627282930313233 |
- version: '2'
- services:
- backend:
- build: ./backend
- ports:
- - "${BACKEND_PORT}:8080"
- volumes:
- - ./backend:/opt/app
- 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"
|