forked from TissueMAPS/TissueMAPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (55 loc) · 1.88 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
---
version: '2'
volumes:
# This will create persistent volumes on your host machine, where data
# and log files will be stored. These volumes and their data will persist
# when containers are stopped or removed.
storage-fs:
storage-db-master:
storage-db-worker:
services:
web:
image: tissuemaps/tissuemaps-web:latest
container_name: tissuemaps-web
hostname: web
depends_on:
- app
volumes:
- storage-fs:/storage/tissuemaps/log
# By default, the web container publishes port 8002 on your host machine.
# You may want to override the external port number. Don't change the
# internal port number, because the web server is configured to listen to
# port 8002. Also note that port numbers below 1024 are reserved for root.
ports:
- '8002:8002'
app:
image: tissuemaps/tissuemaps-app:latest
container_name: tissuemaps-app
hostname: app
depends_on:
- db_master
volumes:
- storage-fs:/storage/tissuemaps/data
- storage-fs:/storage/tissuemaps/log
db_master:
image: tissuemaps/tissuemaps-db_master:latest
container_name: tissuemaps-db-master
hostname: db_master
depends_on:
- db_worker
volumes:
- storage-db-master:/storage
# By default, the database is not accessible from your host machine,
# but only from containers within the private network. You may want to
# publish the port to your host machine. In case you have already a
# database server on your host machine listening to the default port 5432,
# you will have to use another non-conflicting port number, e.g. 5433.
# ports:
# - '5432:5432'
db_worker:
# NOTE: The architecture is configured for one database worker only.
image: tissuemaps/tissuemaps-db_worker:latest
container_name: tissuemaps-db-worker
hostname: db_worker
volumes:
- storage-db-worker:/storage