-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-service.yml
65 lines (62 loc) · 1.82 KB
/
docker-compose-service.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
version: "3.9"
services:
das_service:
build:
context: .
dockerfile: Dockerfile.service
image: das_service
environment:
- DAS_MONGODB_HOSTNAME=${DAS_MONGODB_HOSTNAME:-mongo}
- DAS_MONGODB_PORT=${DAS_MONGODB_PORT:-27017}
- DAS_COUCHBASE_HOSTNAME=${DAS_COUCHBASE_HOSTNAME:-couchbase}
- DAS_DATABASE_USERNAME=${DAS_DATABASE_USERNAME:-dbadmin}
- DAS_DATABASE_PASSWORD=${DAS_DATABASE_PASSWORD:-dassecret}
- PYTHONPATH=/opt/singnet/das
- COUCHBASE_SETUP_DIR=/opt/couchbase_setup
- TZ=${TZ}
tty: true
volumes:
- ./das:/opt/snet/das
- ./tests:/opt/snet/tests
- ./data:/opt/snet/data
- /tmp:/tmp
- couchbasesetup:/opt/couchbase_setup
links:
- mongo
- couchbase
command: python3 service/server.py
mongo:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=${DAS_DATABASE_USERNAME:-dbadmin}
- MONGO_INITDB_ROOT_PASSWORD=${DAS_DATABASE_PASSWORD:-dassecret}
- TZ=${TZ}
ports:
- ${DAS_MONGODB_PORT:-27017}:${DAS_MONGODB_PORT:-27017}
volumes:
- mongodbdata:/data/db
command: mongod --port ${DAS_MONGODB_PORT:-27017}
couchbase:
image: couchbase
build:
context: .
dockerfile: Dockerfile.couchbase
environment:
- DAS_DATABASE_USERNAME=${DAS_DATABASE_USERNAME:-dbadmin}
- DAS_DATABASE_PASSWORD=${DAS_DATABASE_PASSWORD:-dassecret}
- DAS_COUCHBASE_BUCKET_RAMSIZE=${DAS_COUCHBASE_BUCKET_RAMSIZE:-8192}
- COUCHBASE_SETUP_DIR=/opt/couchbase_setup
- TZ=${TZ}
ports:
- "8091-8095:8091-8095"
- "11210:11210"
expose:
- "8091"
- "8094"
volumes:
- couchbasedata:/opt/couchbase/var
- couchbasesetup:/opt/couchbase_setup
volumes:
mongodbdata: { }
couchbasedata: { }
couchbasesetup: { }