PromucFlow_constructor/app/server/docker-compose.yml
Arpit Mohan 135b61a4bc Adding mongo seed data that will be recreated whenever docker-compose causes the containers to restart
Note that we have to delete the Mongo volume for the inidtb script to take effect. Else, it will not execute. To be used only for testing right now. Will figure out a more robust solution later.

Also using Google's JIB Maven plugin to reduce our Docker image footprint. Will make container upload and download much faster
2019-10-16 11:27:02 +00:00

49 lines
918 B
YAML

version: "3.7"
services:
appsmith-internal-server:
image: arpitappsmith/appsmith-server:maven
environment:
- SPRING_PROFILES_ACTIVE=docker
ports:
- "8080:8080"
links:
- mongo
depends_on:
- mongo
networks:
- appsmith
mongo:
image: mongo
ports:
- "27017:27017"
environment:
- MONGO_INITDB_DATABASE=mobtools
volumes:
- ./mongo-seed/:/docker-entrypoint-initdb.d/
networks:
- appsmith
redis:
image: redis
ports:
- "6379:6379"
networks:
- appsmith
opa:
image: openpolicyagent/opa
command: "run --server -c /config/config.yml"
volumes:
- ./appsmith-server/src/main/resources/opa/:/config
environment:
- APPSMITH_SERVER_URL=http://appsmith-internal-server:8080
ports:
- "8181:8181"
networks:
- appsmith
networks:
appsmith:
driver: bridge