[docker-compose] add caddy as a frontend

parent 01f44faa
version: '3' version: '3'
services: services:
caddy:
image: caddy:alpine
network: host
ports:
- 8108:8108
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ../../purescript-gargantext:/srv/purescript-gargantext:ro
#postgres11: #postgres11:
# #image: 'postgres:latest' # #image: 'postgres:latest'
# image: 'postgres:11' # image: 'postgres:11'
...@@ -36,33 +45,35 @@ services: ...@@ -36,33 +45,35 @@ services:
- ../dbs:/dbs - ../dbs:/dbs
- ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro - ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
pgadmin: # NOTE: Use dbeaver instead, it's nicer and remembers passwords
image: 'dpage/pgadmin4' # (unlike pgadmin when you remove the docker volume)
ports: # pgadmin:
- 8081:80 # image: 'dpage/pgadmin4'
environment: # ports:
PGADMIN_DEFAULT_EMAIL: admin@localhost.lan # - 8081:80
PGADMIN_DEFAULT_PASSWORD: admin # environment:
# PGADMIN_DEFAULT_EMAIL: admin@localhost.lan
# PGADMIN_DEFAULT_PASSWORD: admin
depends_on: # depends_on:
- postgres # - postgres
links: # links:
- postgres # - postgres
volumes: # volumes:
- pgadmin:/var/lib/pgadmin # - pgadmin:/var/lib/pgadmin
corenlp: # corenlp:
#image: 'cgenie/corenlp-garg:latest' # #image: 'cgenie/corenlp-garg:latest'
image: 'cgenie/corenlp-garg:4.5.4' # image: 'cgenie/corenlp-garg:4.5.4'
ports: # ports:
- 9000:9000 # - 9000:9000
johnsnownlp: # johnsnownlp:
image: 'johnsnowlabs/nlp-server:latest' # image: 'johnsnowlabs/nlp-server:latest'
volumes: # volumes:
- js-cache:/home/johnsnowlabs/cache_pretrained # - js-cache:/home/johnsnowlabs/cache_pretrained
ports: # ports:
- 5000:5000 # - 5000:5000
volumes: volumes:
#garg-pgdata: #garg-pgdata:
......
...@@ -12,6 +12,7 @@ allowed-origins = [ ...@@ -12,6 +12,7 @@ allowed-origins = [
, "https://msh.sub.gargantext.org" , "https://msh.sub.gargantext.org"
, "https://dev.sub.gargantext.org" , "https://dev.sub.gargantext.org"
, "http://localhost:8008" , "http://localhost:8008"
, "http://localhost:8108"
] ]
use-origins-for-hosts = true use-origins-for-hosts = true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment