forked from Mrldatalab/datalab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (93 loc) · 1.92 KB
/
docker-compose.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
91
92
93
94
95
96
97
98
99
name: datalab
services:
app:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/app_dockerfile
target: production
volumes:
- ./logs:/logs
restart: unless-stopped
environment:
- VUE_APP_API_URL
- VUE_APP_LOGO_URL
- VUE_APP_HOMEPAGE_URL
- VUE_APP_EDITABLE_INVENTORY
ports:
- "8081:8081"
app_dev:
profiles: ["dev"]
build:
context: .
dockerfile: .docker/app_dockerfile
target: development
volumes:
- ./logs:/logs
- ./webapp:/app
ports:
- "8081:8081"
api:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/server_dockerfile
target: production
args:
- WEB_CONCURRENCY=4
depends_on:
- database
restart: unless-stopped
volumes:
- ./logs:/logs
- /data/files:/app/files
- /data/backups:/tmp/datalab-backups
ports:
- "5001:5001"
networks:
- backend
environment:
- PYDATALAB_MONGO_URI=mongodb://database:27017/datalabvue
api_dev:
profiles: ["dev"]
build:
context: .
dockerfile: .docker/server_dockerfile
target: development
depends_on:
- database_dev
volumes:
- ./logs:/logs
- ./pydatalab:/app
ports:
- "5001:5001"
networks:
- backend
environment:
- PYDATALAB_MONGO_URI=mongodb://database_dev:27017/datalabvue
database_dev:
profiles: ["dev"]
build:
context: .
dockerfile: .docker/mongo_dockerfile
volumes:
- ./logs:/var/logs/mongod
restart: unless-stopped
networks:
- backend
ports:
- "27017:27017"
database:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/mongo_dockerfile
volumes:
- ./logs:/var/logs/mongod
- /data/db:/data/db
restart: unless-stopped
networks:
- backend
networks:
backend:
driver: bridge