Skip to content
Snippets Groups Projects
docker-compose.yml 2.27 KiB
Newer Older
Ulf Seltmann's avatar
Ulf Seltmann committed
version: '2'
services:
Ulf Seltmann's avatar
Ulf Seltmann committed
  php:
    image: ubleipzig/vufind-php:5.6-5-debug
    volumes:
      - ./:/usr/local/vufind
    environment:
      VUFIND_LOCAL_DIR: /usr/local/vufind/local/dev
      VUFIND_CACHE_DIR: /usr/local/vufind/data/cache
      VUFIND_LOCAL_MODULES: finc
Ulf Seltmann's avatar
Ulf Seltmann committed
      VUFIND_ENV: development
Ulf Seltmann's avatar
Ulf Seltmann committed

  httpd:
    image: ubleipzig/vufind-httpd:2.4-2
Ulf Seltmann's avatar
Ulf Seltmann committed
    ports:
      - 80:80
    volumes:
Ulf Seltmann's avatar
Ulf Seltmann committed
      - ./:/usr/local/vufind:ro
      - ./data/cache:/var/cache/vufind:ro
Ulf Seltmann's avatar
Ulf Seltmann committed
    depends_on:
Ulf Seltmann's avatar
Ulf Seltmann committed
      - php

  db:
    image: mariadb:10.2
    ports:
      - 127.0.0.1:3306:3306
    volumes:
      - mariadb-data:/var/lib/mysql:z
    environment:
      MYSQL_ROOT_PASSWORD: adminpw
    command:
      - --character-set-server=utf8mb4
      - --collation-server=utf8mb4_unicode_ci

Ulf Seltmann's avatar
Ulf Seltmann committed
  smtp:
Ulf Seltmann's avatar
Ulf Seltmann committed
    image: useltmann/mailcollect:8-1
Ulf Seltmann's avatar
Ulf Seltmann committed
    ports:
Ulf Seltmann's avatar
Ulf Seltmann committed
      - '143:143'
      - '25:25'
Ulf Seltmann's avatar
Ulf Seltmann committed
    volumes:
      - mail-data:/home/dev/Maildir:z
Ulf Seltmann's avatar
Ulf Seltmann committed

  grunt:
    image: ubleipzig/vufind-php:5.6-5-debug
    volumes:
      - ./:/usr/local/vufind:z
      - npm-cache:/home/www-data/.npm
    environment:
      NODE_ENV: development
    command: npm install && node_modules/.bin/grunt watch

  composer:
    image: ubleipzig/vufind-php:7.2-5-debug
    volumes:
      - ./:/usr/local/vufind:z
      - composer-cache:/home/www-data/.composer
    command: phing composer -Dcomposer_extra_params=--no-scripts

  autoconfig:
    image: ubleipzig/vufind-php:5.6-5-debug
    volumes:
      - ./:/usr/local/vufind:z
    environment:
      VUFIND_SITE: local
      VUFIND_INSTANCE: dev
      VUFIND_DB_CLIENT: "%"
      VUFIND_DB_ADMIN_PASSWORD: adminpw
      VF_config_ini__Authentication__hash_passwords: "true"
      VF_config_ini__Authentication__encrypt_ils_password: "true"
      VF_config_ini__Database__database: mysql://vufind:vufindpw@db/vufind
      VF_config_ini__Index__url: http://172.18.113.12:8080/solr
      VF_config_ini__Mail__host: smtp
      VF_config_ini__Mail__port: 25
      VF_config_ini__Mail__username: dev
      VF_config_ini__Mail__pasword: dev
    command: sleep 10 && autoconfig vufind deploy
    depends_on:
      - db
Ulf Seltmann's avatar
Ulf Seltmann committed

volumes:
Ulf Seltmann's avatar
Ulf Seltmann committed
  composer-cache: {}
  npm-cache: {}
Ulf Seltmann's avatar
Ulf Seltmann committed
  mail-data: {}
Ulf Seltmann's avatar
Ulf Seltmann committed
  mariadb-data: {}
Ulf Seltmann's avatar
Ulf Seltmann committed

networks:
  default:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 10.2.0.0/16
Ulf Seltmann's avatar
Ulf Seltmann committed
          gateway: 10.2.0.1