Created
May 16, 2019 08:14
-
-
Save pferreir/77ede49adb292879c52e3e4a02e28582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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