|
|
@ -9,11 +9,11 @@ services: |
|
|
|
- static_volume:/backend/staticfiles |
|
|
|
- media:/backend/media |
|
|
|
environment: |
|
|
|
ADMIN_USERNAME: "admin" |
|
|
|
ADMIN_PASSWORD: "password" |
|
|
|
ADMIN_EMAIL: "admin@example.com" |
|
|
|
CELERY_BROKER_URL: "amqp://doccano:doccano@rabbitmq" |
|
|
|
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable" |
|
|
|
ADMIN_USERNAME: "${ADMIN_USERNAME}" |
|
|
|
ADMIN_PASSWORD: "${ADMIN_PASSWORD}" |
|
|
|
ADMIN_EMAIL: ${ADMIN_EMAIL} |
|
|
|
CELERY_BROKER_URL: "amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq" |
|
|
|
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable" |
|
|
|
ALLOW_SIGNUP: "False" |
|
|
|
DEBUG: "False" |
|
|
|
depends_on: |
|
|
@ -31,8 +31,8 @@ services: |
|
|
|
entrypoint: ["/opt/bin/prod-celery.sh"] |
|
|
|
environment: |
|
|
|
PYTHONUNBUFFERED: "1" |
|
|
|
CELERY_BROKER_URL: "amqp://doccano:doccano@rabbitmq" |
|
|
|
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable" |
|
|
|
CELERY_BROKER_URL: "amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq" |
|
|
|
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable" |
|
|
|
depends_on: |
|
|
|
- postgres |
|
|
|
- rabbitmq |
|
|
@ -42,8 +42,8 @@ services: |
|
|
|
rabbitmq: |
|
|
|
image: rabbitmq:3.8 |
|
|
|
environment: |
|
|
|
RABBITMQ_DEFAULT_USER: "doccano" |
|
|
|
RABBITMQ_DEFAULT_PASS: "doccano" |
|
|
|
RABBITMQ_DEFAULT_USER: "${RABBITMQ_DEFAULT_USER}" |
|
|
|
RABBITMQ_DEFAULT_PASS: "${RABBITMQ_DEFAULT_PASS}" |
|
|
|
ports: |
|
|
|
- 5672:5672 |
|
|
|
networks: |
|
|
@ -71,9 +71,9 @@ services: |
|
|
|
volumes: |
|
|
|
- postgres_data:/var/lib/postgresql/data/ |
|
|
|
environment: |
|
|
|
POSTGRES_USER: "doccano" |
|
|
|
POSTGRES_PASSWORD: "doccano" |
|
|
|
POSTGRES_DB: "doccano" |
|
|
|
POSTGRES_USER: "${POSTGRES_USER}" |
|
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" |
|
|
|
POSTGRES_DB: "${POSTGRES_DB}" |
|
|
|
networks: |
|
|
|
- network-backend |
|
|
|
|
|
|
|