Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: "3.7"
services:
cern-search-api:
build: .
networks:
- default
environment:
- "INVENIO_ACCOUNTS_SESSION_REDIS_URL=redis://redis:6379/1"
- "INVENIO_CACHE_REDIS_URL=redis://redis:6379/0"
- "INVENIO_SEARCH_ELASTIC_HOSTS=elasticsearch"
- "INVENIO_SQLALCHEMY_DATABASE_URI=postgres://uservice:itsjust1234@postgres/uservice"
- "INVENIO_CERN_APP_CREDENTIALS={'consumer_key': 'bah'}"
- "INVENIO_CERN_APP_CREDENTIALS_CONSUMER_KEY=xxx"
- "INVENIO_ADMIN_VIEW_ACCESS_GROUPS="
- "INVENIO_ADMIN_ACCESS_GROUPS="
- "INVENIO_ADMIN_USER=test@example.com"
entrypoint:
- /bin/bash
- -c
- |
sh /opt/invenio/src/scripts/populate-instance.sh
invenio users create test@example.com --password test1234 --active || true
uwsgi --module cern_search_rest_api.wsgi:application --socket 0.0.0.0:5000 --master --processes 4 --threads 1 --stats /tmp/stats.socket
elasticsearch:
image: elasticsearch:6.7.2
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: single-node
networks:
- default
volumes:
- es-data:/usr/share/elasticsearch/data
tika:
image: logicalspark/docker-tikaserver
ports:
- "9998:9998"
networks:
- default
redis:
image: redis:5
networks:
- default
postgres:
image: postgres:11
environment:
- POSTGRES_USER=uservice
- POSTGRES_PASSWORD=itsjust1234
- POSTGRES_DB=uservice
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- default
nginx:
image: nginx:stable-alpine
ports:
- "8080:8080"
volumes:
- ./nginx/tls:/etc/nginx/tls
- nginx-cache:/var/cache/nginx
- nginx-run:/var/run
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
default:
volumes:
es-data:
postgres-data:
nginx-run:
nginx-cache:
nginx-tls:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.