-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
90 lines (83 loc) · 1.93 KB
/
docker-compose.dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3.7"
services:
backend:
restart: always
build:
context: .
dockerfile: backend/Dockerfile.dev
volumes:
- .:/src
- venv:/root/.local/share
environment:
ADMIN_USERNAME: "admin"
ADMIN_PASSWORD: "password"
ADMIN_EMAIL: "[email protected]"
CELERY_BROKER_URL: "amqp://doccano:doccano@rabbitmq"
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
ALLOW_SIGNUP: "True"
DEBUG: "True"
ports:
- 8000:8000
depends_on:
- postgres
networks:
- network-backend
- network-frontend
celery:
build:
context: .
dockerfile: backend/Dockerfile.dev
volumes:
- .:/src
- venv:/root/.local/share
entrypoint: ["/src/tools/dev-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
frontend:
image: node:13.7.0
command: ["/src/tools/dev-nuxt.sh"]
working_dir: /src/frontend
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: