mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
58 lines
1.2 KiB
58 lines
1.2 KiB
version: "3.7"
|
|
services:
|
|
|
|
backend:
|
|
image: python:3.8.6-buster
|
|
volumes:
|
|
- .:/src
|
|
- venv:/src/venv
|
|
command: ["/src/app/tools/dev-django.sh", "0.0.0.0:8000"]
|
|
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: "True"
|
|
ports:
|
|
- 8000:8000
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- network-backend
|
|
- network-frontend
|
|
|
|
frontend:
|
|
image: node:13.7.0
|
|
command: ["/src/frontend/dev-nuxt.sh"]
|
|
environment:
|
|
API_URL: "http://backend:8000"
|
|
volumes:
|
|
- .:/src
|
|
- node_modules:/src/frontend/node_modules
|
|
ports:
|
|
- 3000:3000
|
|
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:
|
|
node_modules:
|
|
venv:
|
|
|
|
networks:
|
|
network-backend:
|
|
network-frontend:
|