You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
3.0 KiB
98 lines
3.0 KiB
version: '3'
|
|
services:
|
|
core:
|
|
build:
|
|
context: ./docker/core
|
|
dockerfile: Dockerfile
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
volumes:
|
|
- './docker/core/20-supervisor.sh:/docker-entrypoint.d/20-supervisor.sh'
|
|
- './docker/core/duckling-worker.conf:/etc/supervisor/conf.d/duckling-worker.conf'
|
|
- './docker/core/queue-worker.conf:/etc/supervisor/conf.d/queue-worker.conf'
|
|
- './searchanddisplace-core:/var/www/core'
|
|
environment:
|
|
NGINX_ENVSUBST_TEMPLATE_SUFFIX: '${NGINX_ENVSUBST_TEMPLATE_SUFFIX:-.conf}'
|
|
SERVER_ROOT: '/var/www/core'
|
|
SERVER_NAME: 'core.sandd'
|
|
container_name: sandd_core
|
|
networks:
|
|
- sandd
|
|
expose:
|
|
- 9003
|
|
depends_on:
|
|
- redis
|
|
|
|
ingest:
|
|
build:
|
|
context: ./docker/ingest
|
|
dockerfile: Dockerfile
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
volumes:
|
|
- './docker/ingest/20-xdebug.ini:/etc/php/7.4/fpm/conf.d/20-xdebug.ini'
|
|
- './docker/ingest/20-supervisor.sh:/docker-entrypoint.d/20-supervisor.sh'
|
|
- './docker/ingest/queue-worker.conf:/etc/supervisor/conf.d/queue-worker.conf'
|
|
- './searchanddisplace-ingest:/var/www/ingest'
|
|
environment:
|
|
NGINX_ENVSUBST_TEMPLATE_SUFFIX: '${NGINX_ENVSUBST_TEMPLATE_SUFFIX:-.conf}'
|
|
SERVER_ROOT: '/var/www/ingest'
|
|
SERVER_NAME: 'ingest.sandd'
|
|
container_name: sandd_ingest
|
|
networks:
|
|
- sandd
|
|
expose:
|
|
- 9004
|
|
depends_on:
|
|
- redis
|
|
|
|
nginx:
|
|
image: 'nginx:alpine'
|
|
container_name: sandd_nginx
|
|
volumes:
|
|
- './docker/conf/nginx/nginx.conf:/etc/nginx/nginx.conf'
|
|
- './docker/conf/nginx/templates:/etc/nginx/templates'
|
|
- './docker/cert:/etc/cert'
|
|
environment:
|
|
NGINX_ENVSUBST_TEMPLATE_SUFFIX: '${NGINX_ENVSUBST_TEMPLATE_SUFFIX}'
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
networks:
|
|
- sandd
|
|
depends_on:
|
|
- core
|
|
- ingest
|
|
|
|
redis:
|
|
image: "redis:alpine"
|
|
container_name: sandd_redis
|
|
command: redis-server --requirepass sandd
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- $PWD/docker/redis/data:/var/lib/redis
|
|
- $PWD/docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
|
|
environment:
|
|
- REDIS_REPLICATION_MODE=master
|
|
networks:
|
|
- sandd
|
|
|
|
redis-commander:
|
|
image: rediscommander/redis-commander:latest
|
|
container_name: sandd_redis_commander
|
|
environment:
|
|
- REDIS_HOSTS=sandd:redis:6379:1:sandd
|
|
- HTTP_USER=root
|
|
- HTTP_PASSWORD=sandd
|
|
ports:
|
|
- 8081:8081
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- sandd
|
|
|
|
|
|
networks:
|
|
sandd:
|
|
driver: bridge
|