-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
57 lines (54 loc) · 1.66 KB
/
docker-compose.dev.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
services:
# PostgreSQL
db:
image: postgres:16
restart: 'always'
container_name: multiomics_dev_db
ports:
- '5432:5432'
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: example
POSTGRES_DB: multiomics
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./config/postgres/postgres.conf:/etc/postgresql/postgresql.conf
# MongoDB Server
mongo:
image: mongo:4.2
restart: 'always'
container_name: multiomics_dev_mongo_db
ports:
- '27017:27017'
# Sets the config file
command: --config /etc/mongo/mongod.conf
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- mongo_data:/data/db
- mongo_config:/data/configdb
- ./config/mongo/mongod.conf:/etc/mongo/mongod.conf
# Redis Server for Websocket connections
redis:
image: redis:6.2.14-alpine
restart: 'always'
container_name: multiomics_dev_websocket_channel_redis
volumes:
- redis_data:/data
ports:
- "6379:6379"
volumes:
mongo_data:
external: true
name: 'multiomics_intermediate_mongo_data'
mongo_config:
external: true
name: 'multiomics_intermediate_mongo_config'
postgres_data:
external: true
name: 'multiomics_intermediate_postgres_data'
redis_data:
external: true
name: 'multiomics_intermediate_redis_data'