version: '3.5' | |
services: | |
arches: | |
container_name: arches | |
image: archesproject/arches:master | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
command: run_arches | |
volumes: | |
- type: bind | |
source: ./volumes/arches-logs | |
target: /arches/arches/logs | |
- type: bind | |
source: ./volumes/arches-static | |
target: /static_root | |
- type: bind | |
source: ./volumes/historicplacesmerced | |
target: /web_root/historicplacesmerced | |
environment: | |
- ARCHES_PROJECT=historicplacesmerced | |
- INSTALL_DEFAULT_GRAPHS=True | |
- INSTALL_DEFAULT_CONCEPTS=True | |
- PGUSERNAME=postgres | |
- PGPASSWORD=postgres | |
- PGDBNAME=historicplacesmerced | |
- PGHOST=db | |
- PGPORT=5432 | |
- COUCHDB_HOST=couchdb | |
- COUCHDB_PORT=5984 | |
- COUCHDB_USER=admin | |
- COUCHDB_PASS=password | |
- ESHOST=elasticsearch | |
- ESPORT=9200 | |
# - ELASTICSEARCH_PREFIX=insert_project_name | |
- DJANGO_MODE=PROD | |
- DJANGO_DEBUG=True | |
# - DJANGO_REMOTE_DEBUG=False | |
- DOMAIN_NAMES=historicplacesmerced.ucmerced.edu | |
- PYTHONUNBUFFERED=0 | |
- TZ=PST | |
ports: | |
- '8000:8000' | |
depends_on: | |
- db | |
- elasticsearch | |
- couchdb | |
nginx: | |
container_name: nginx | |
image: cvast/cvast-nginx:1.2.0 | |
restart: unless-stopped | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: | |
- type: bind | |
source: ./volumes/arches-static | |
target: /www/static | |
- letsencrypt-acme-challenge:/var/www | |
- letsencrypt:/etc/letsencrypt | |
environment: | |
- NGINX_PROXY_MODE=local | |
- NGINX_PROTOCOL=http | |
- LOCAL_PROXY_HOST=arches | |
- LOCAL_PROXY_PORT=8000 | |
- DOMAIN_NAMES=historicplacesmerced.ucmerced.edu | |
- PUBLIC_MODE=False | |
- TZ=PST | |
depends_on: | |
- arches | |
db: | |
container_name: db | |
image: mdillon/postgis:9.6-alpine | |
volumes: | |
- type: bind | |
source: ./volumes/postgres-data | |
target: /var/lib/postgresql/data | |
- type: bind | |
source: ./volumes/postgres-log | |
target: /var/log/postgresql | |
ports: | |
- '5432:5432' | |
environment: | |
- POSTGRES_PASSWORD=postgres | |
- TZ=PST | |
couchdb: | |
container_name: couchdb | |
image: couchdb:2.1.1 | |
ports: | |
- "5984:5984" | |
environment: | |
COUCHDB_USER: admin | |
COUCHDB_PASSWORD: password | |
volumes: | |
- type: bind | |
source: ./volumes/couchdb-data | |
target: /usr/local/var/lib/couchdb | |
- type: bind | |
source: ./volumes/couchdb-log | |
target: /usr/local/var/log/couchdb | |
elasticsearch: | |
container_name: elasticsearch | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.1 | |
volumes: | |
- type: bind | |
source: ./volumes/elasticsearch-data | |
target: /usr/share/elasticsearch/data | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
environment: | |
- TZ=PST | |
letsencrypt: | |
container_name: letsencrypt | |
image: cvast/cvast-letsencrypt:1.1 | |
volumes: | |
- letsencrypt-acme-challenge:/var/www | |
- letsencrypt:/etc/letsencrypt | |
- letsencrypt-log:/var/log/letsencrypt | |
command: get_certificate | |
environment: | |
- MODE=regular | |
- LETSENCRYPT_EMAIL=info@example.com | |
- DOMAIN_NAMES=historicplacesmerced.ucmerced.edu | |
- PRODUCTION_MODE=False | |
- PERSISTENT_MODE=True | |
- TZ=PST | |
volumes: | |
letsencrypt: | |
letsencrypt-log: | |
letsencrypt-acme-challenge: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment