You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.2 KiB

version: "3.7"
services:
backend:
build:
context: .
dockerfile: app/Dockerfile.prod
# command: ["/app/tools/run.sh"]
volumes:
- static_volume:/app/staticfiles
environment:
ADMIN_USERNAME: "admin"
ADMIN_PASSWORD: "password"
ADMIN_EMAIL: "admin@example.com"
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
ALLOW_SIGNUP: "False"
DEBUG: "False"
depends_on:
- postgres
networks:
- network-backend
- network-frontend
frontend:
build: ./frontend
environment:
API_URL: "http://backend:8000"
GOOGLE_TRACKING_ID: ""
volumes:
- www:/app/dist
nginx:
build: ./nginx
volumes:
- www:/var/www/html:ro
- static_volume:/static
ports:
- 80:80
depends_on:
- backend
networks:
- network-frontend
postgres:
image: postgres:13.1-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: "doccano"
POSTGRES_PASSWORD: "doccano"
POSTGRES_DB: "doccano"
networks:
- network-backend
volumes:
postgres_data:
static_volume:
www:
networks:
network-backend:
network-frontend: