forked from doccano/doccano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
59 lines (53 loc) · 1.13 KB
/
docker-compose.prod.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
version: "3.7"
services:
backend:
build: ./app
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
volumes:
- www:/app/dist
environment:
GOOGLE_TRACKING_ID: ""
nginx:
build: ./nginx
volumes:
- www:/var/www/html:ro
- static_volume:/static
ports:
- 80:80
depends_on:
- backend
networks:
- network-frontend
postgres:
image: postgres:12.0-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: