docker-compose.yml 1.38 KB
Newer Older
1 2 3
version: '2.1'

volumes:
4
    broker:
5
        driver: local
6 7 8 9 10
    app:
        driver: local
    db:
        driver: local
    results:
11 12 13
        driver: local

services:
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  broker:
    container_name: mayan-edms-broker
    image: healthcheck/rabbitmq
    environment:
      RABBITMQ_DEFAULT_USER: mayan
      RABBITMQ_DEFAULT_PASS: mayan
      RABBITMQ_DEFAULT_VHOST: mayan
    volumes:
      - broker:/var/lib/rabbitmq
  results:
    container_name: mayan-edms-results
    image: healthcheck/redis
    volumes:
      - results:/data
  db:
    container_name: mayan-edms-db
30 31
    image: healthcheck/postgres
    environment:
32 33 34
      POSTGRES_DB: mayan
      POSTGRES_PASSWORD: mayan-password
      POSTGRES_USER: mayan
35
    volumes:
36
      - db:/var/lib/postgresql/data
37
  mayan-edms:
38
    container_name: mayan-edms-app
39
    image: mayanedms/mayanedms:2.7.3
40
    depends_on:
41 42 43 44 45
      broker:
        condition: service_healthy
      db:
        condition: service_healthy
      results:
46 47
        condition: service_healthy
    environment:
48 49
      MAYAN_BROKER_URL: amqp://mayan:mayan@broker:5672/mayan
      MAYAN_CELERY_RESULT_BACKEND: redis://results:6379/0
Ovv's avatar
Ovv committed
50
      MAYAN_DATABASE_DRIVER: django.db.backends.postgresql
51 52 53 54
      MAYAN_DATABASE_HOST: db
      MAYAN_DATABASE_NAME: mayan
      MAYAN_DATABASE_PASSWORD: mayan-password
      MAYAN_DATABASE_USER: mayan
55 56 57
    ports:
      - "80:80"
    volumes:
58
      - app:/var/lib/mayan