12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- version: '2'
- services:
- backend:
- build: ./backend
- ports:
- - "${BACKEND_PORT}:8080"
- volumes:
- - ./backend:/opt/app
- - ./log:/opt/log
- links:
- - mongo
- - redis
- environment:
- - SNYK_TOKEN=${SNYK_TOKEN}
- frontend:
- build: ./frontend
- environment:
- ports:
- - "${FRONTEND_PORT}:80"
- volumes:
- - ./frontend:/opt/app
- environment:
- - FRONTEND_MODE=${FRONTEND_MODE}
- - SNYK_TOKEN=${SNYK_TOKEN}
- mongo:
- image: mongo:4.0
- ports:
- - "${MONGO_PORT}:27017"
- environment:
- - MONGO_INITDB_ROOT_USERNAME=admin
- - MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- - MONGO_INITDB_DATABASE=musare
- - MONGO_PORT=${MONGO_PORT}
- - MONGO_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- - MONGO_USER_USERNAME=${MONGO_USER_USERNAME}
- - MONGO_USER_PASSWORD=${MONGO_USER_PASSWORD}
- volumes:
- - ./tools/setup-mongo.sh:/docker-entrypoint-initdb.d/setup-mongo.sh
- mongoclient:
- image: mongoclient/mongoclient
- ports:
- - "${MONGOCLIENT_PORT}:3000"
- redis:
- image: redis
- command: "--notify-keyspace-events Ex --requirepass ${REDIS_PASSWORD}"
- volumes:
- - .redis:/data
- ports:
- - "${REDIS_PORT}:6379"
|