Browse Source

Use pre-built image to avoid build

pull/1992/head
Hironsan 2 years ago
parent
commit
9259a71403
1 changed files with 4 additions and 16 deletions
  1. 20
      docker/docker-compose.prod.yml

20
docker/docker-compose.prod.yml

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

Loading…
Cancel
Save