|
@ -2,10 +2,7 @@ version: "3.7" |
|
|
services: |
|
|
services: |
|
|
|
|
|
|
|
|
backend: |
|
|
backend: |
|
|
build: |
|
|
|
|
|
context: .. |
|
|
|
|
|
dockerfile: docker/Dockerfile.prod |
|
|
|
|
|
image: doccano_backend:prod |
|
|
|
|
|
|
|
|
image: doccano/doccano:backend |
|
|
volumes: |
|
|
volumes: |
|
|
- static_volume:/backend/staticfiles |
|
|
- static_volume:/backend/staticfiles |
|
|
- media:/backend/media |
|
|
- media:/backend/media |
|
@ -26,10 +23,7 @@ services: |
|
|
- network-frontend |
|
|
- network-frontend |
|
|
|
|
|
|
|
|
celery: |
|
|
celery: |
|
|
build: |
|
|
|
|
|
context: .. |
|
|
|
|
|
dockerfile: docker/Dockerfile.prod |
|
|
|
|
|
image: doccano_celery:prod |
|
|
|
|
|
|
|
|
image: doccano/doccano:backend |
|
|
volumes: |
|
|
volumes: |
|
|
- media:/backend/media |
|
|
- media:/backend/media |
|
|
- tmp_file:/backend/filepond-temp-uploads |
|
|
- tmp_file:/backend/filepond-temp-uploads |
|
@ -46,10 +40,7 @@ services: |
|
|
- network-backend |
|
|
- network-backend |
|
|
|
|
|
|
|
|
flower: |
|
|
flower: |
|
|
build: |
|
|
|
|
|
context: .. |
|
|
|
|
|
dockerfile: docker/Dockerfile.prod |
|
|
|
|
|
image: doccano_flower:prod |
|
|
|
|
|
|
|
|
image: doccano/doccano:backend |
|
|
entrypoint: ["/opt/bin/prod-flower.sh"] |
|
|
entrypoint: ["/opt/bin/prod-flower.sh"] |
|
|
environment: |
|
|
environment: |
|
|
PYTHONUNBUFFERED: "1" |
|
|
PYTHONUNBUFFERED: "1" |
|
@ -76,10 +67,7 @@ services: |
|
|
- network-backend |
|
|
- network-backend |
|
|
|
|
|
|
|
|
nginx: |
|
|
nginx: |
|
|
build: |
|
|
|
|
|
context: .. |
|
|
|
|
|
dockerfile: docker/Dockerfile.nginx |
|
|
|
|
|
image: doccano_nginx:prod |
|
|
|
|
|
|
|
|
image: doccano/doccano:frontend |
|
|
command: > |
|
|
command: > |
|
|
/bin/sh -c |
|
|
/bin/sh -c |
|
|
"envsubst ' |
|
|
"envsubst ' |
|
|