cjvt-valency/production.yaml

44 lines
883 B
YAML
Raw Normal View History

2019-05-04 16:12:05 +00:00
version: '3.1'
services:
my_mongo:
image: my-mongo
restart: always
# ports:
# - 27017:27017
2019-05-05 13:50:48 +00:00
expose:
- 27017
2019-05-04 16:12:05 +00:00
environment:
2019-05-05 13:50:48 +00:00
MONGO_INITDB_ROOT_USERNAME: valuser
MONGO_INITDB_ROOT_PASSWORD: valuserpass
2019-05-04 16:12:05 +00:00
volumes:
- ${HOME}/mongo_container/data/:/data/db
mongo_express:
image: mongo-express
restart: always
2019-05-05 13:50:48 +00:00
ports:
2019-05-06 20:10:33 +00:00
- 8081:8081
2019-05-04 16:12:05 +00:00
environment:
2019-05-05 13:50:48 +00:00
ME_CONFIG_BASICAUTH_USERNAME: test
ME_CONFIG_BASICAUTH_PASSWORD: test
ME_CONFIG_MONGODB_ADMINUSERNAME: valadmin
ME_CONFIG_MONGODB_ADMINPASSWORD: rolercoaster
ME_CONFIG_MONGODB_SERVER: my_mongo
2019-05-04 16:12:05 +00:00
2019-05-05 13:50:48 +00:00
backend_flask:
image: backend-flask
expose:
- 8084
2019-05-04 16:12:05 +00:00
proxy:
image: nginx
ports:
- 80:80
- 8084:8084
volumes:
2019-05-05 13:50:48 +00:00
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./src/frontend_vue/dist:/srv/dist
2019-05-06 20:10:33 +00:00