-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
58 lines (55 loc) · 1.22 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
name: datalab
services:
app:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/app_dockerfile
volumes:
- ./logs:/logs
restart: unless-stopped
environment:
- VUE_APP_GIT_VERSION
- VUE_APP_API_URL
- VUE_APP_LOGO_URL
- VUE_APP_HOMEPAGE_URL
- VUE_APP_EDITABLE_INVENTORY
- VUE_APP_WEBSITE_TITLE
- VUE_APP_QR_CODE_RESOLVER_URL
ports:
- "8081:8081"
api:
profiles: ["prod"]
build:
context: .
dockerfile: .docker/server_dockerfile
args:
- WEB_CONCURRENCY=4
- SETUPTOOLS_SCM_PRETEND_VERSION=${SETUPTOOLS_SCM_PRETEND_VERSION}
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
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