-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.3 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: '3.8'
services:
pflink:
image: local/pflink
container_name: pflink
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8050
volumes:
- ./:/app/
environment:
PFLINK_MONGODB: mongodb://pflink-db:27017
MONGO_USERNAME: admin
MONGO_PASSWORD: admin
LOG_LEVEL: INFO
MAX_WORKERS: 24
ports:
- "8050:8050"
networks:
local:
pflink:
pflink-db:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
ports:
- 27017:27017
volumes:
- type: volume
source: MONGO_DATA
target: /data/db
restart: unless-stopped
networks:
pflink:
mongo-express:
image: mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=pflink-db
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
- ME_CONFIG_MONGODB_AUTH_USERNAME=admin
- ME_CONFIG_MONGODB_AUTH_PASSWORD=admin
- ME_CONFIG_BASICAUTH_USERNAME=admin
- ME_CONFIG_BASICAUTH_PASSWORD=admin
depends_on:
- pflink-db
ports:
- "8888:8081"
restart: unless-stopped
networks:
local:
pflink:
networks:
local:
pflink:
volumes:
MONGO_DATA: