forked from datalab-org/datalab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (85 loc) · 1.64 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
version: "3.9"
services:
app:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/app_dockerfile
target: production
volumes:
- ./logs:/logs
environment:
- VUE_APP_API_URL
- VUE_APP_LOGO_URL
- VUE_APP_HOMEPAGE_URL
- VUE_APP_EDITABLE_INVENTORY
ports:
- "8081:8081"
networks:
- nginx
app_dev:
profiles: ["dev"]
build:
context: .
dockerfile: .docker/app_dockerfile
target: development
volumes:
- ./logs:/logs
- ./webapp:/app
ports:
- "8081:8081"
networks:
- nginx
api:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/server_dockerfile
target: production
args:
- WEB_CONCURRENCY=4
depends_on:
- database
volumes:
- ./logs:/logs
ports:
- "5001:5001"
networks:
- nginx
- backend
environment:
- PYDATALAB_MONGO_URI=mongodb://database:27017/datalabvue
api_dev:
profiles: ["dev"]
build:
context: .
dockerfile: .docker/server_dockerfile
target: development
depends_on:
- database
volumes:
- ./logs:/logs
- ./pydatalab:/app
ports:
- "5001:5001"
networks:
- nginx
- backend
environment:
- PYDATALAB_TESTING=true
- PYDATALAB_MONGO_URI=mongodb://database:27017/datalabvue
database:
build:
context: .
dockerfile: .docker/mongo_dockerfile
volumes:
- ./logs:/var/logs/mongod
networks:
- backend
ports:
- "27017:27017"
networks:
nginx:
external: true
backend:
driver: bridge