|
@ -7,10 +7,12 @@ services: |
|
|
dockerfile: app/Dockerfile.prod |
|
|
dockerfile: app/Dockerfile.prod |
|
|
volumes: |
|
|
volumes: |
|
|
- static_volume:/app/staticfiles |
|
|
- static_volume:/app/staticfiles |
|
|
|
|
|
- media:/app/media |
|
|
environment: |
|
|
environment: |
|
|
ADMIN_USERNAME: "admin" |
|
|
ADMIN_USERNAME: "admin" |
|
|
ADMIN_PASSWORD: "password" |
|
|
ADMIN_PASSWORD: "password" |
|
|
ADMIN_EMAIL: "admin@example.com" |
|
|
ADMIN_EMAIL: "admin@example.com" |
|
|
|
|
|
CELERY_BROKER_URL: "amqp://doccano:doccano@rabbitmq" |
|
|
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable" |
|
|
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable" |
|
|
ALLOW_SIGNUP: "False" |
|
|
ALLOW_SIGNUP: "False" |
|
|
DEBUG: "False" |
|
|
DEBUG: "False" |
|
@ -20,6 +22,33 @@ services: |
|
|
- network-backend |
|
|
- network-backend |
|
|
- network-frontend |
|
|
- network-frontend |
|
|
|
|
|
|
|
|
|
|
|
celery: |
|
|
|
|
|
build: |
|
|
|
|
|
context: . |
|
|
|
|
|
dockerfile: app/Dockerfile.prod |
|
|
|
|
|
volumes: |
|
|
|
|
|
- media:/app/media |
|
|
|
|
|
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" |
|
|
|
|
|
depends_on: |
|
|
|
|
|
- postgres |
|
|
|
|
|
- rabbitmq |
|
|
|
|
|
networks: |
|
|
|
|
|
- network-backend |
|
|
|
|
|
|
|
|
|
|
|
rabbitmq: |
|
|
|
|
|
image: rabbitmq:3.8 |
|
|
|
|
|
environment: |
|
|
|
|
|
RABBITMQ_DEFAULT_USER: "doccano" |
|
|
|
|
|
RABBITMQ_DEFAULT_PASS: "doccano" |
|
|
|
|
|
ports: |
|
|
|
|
|
- 5672:5672 |
|
|
|
|
|
networks: |
|
|
|
|
|
- network-backend |
|
|
|
|
|
|
|
|
nginx: |
|
|
nginx: |
|
|
build: |
|
|
build: |
|
|
context: . |
|
|
context: . |
|
@ -29,6 +58,7 @@ services: |
|
|
GOOGLE_TRACKING_ID: "" |
|
|
GOOGLE_TRACKING_ID: "" |
|
|
volumes: |
|
|
volumes: |
|
|
- static_volume:/static |
|
|
- static_volume:/static |
|
|
|
|
|
- media:/media |
|
|
ports: |
|
|
ports: |
|
|
- 80:80 |
|
|
- 80:80 |
|
|
depends_on: |
|
|
depends_on: |
|
@ -50,6 +80,7 @@ services: |
|
|
volumes: |
|
|
volumes: |
|
|
postgres_data: |
|
|
postgres_data: |
|
|
static_volume: |
|
|
static_volume: |
|
|
|
|
|
media: |
|
|
|
|
|
|
|
|
networks: |
|
|
networks: |
|
|
network-backend: |
|
|
network-backend: |
|
|