-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (107 loc) · 2.27 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend:/app:rw
networks:
- proxy
db:
image: postgres:15
volumes:
- ./data/db:/var/lib/postgresql/data:rw
environment:
POSTGRES_USER: portal
POSTGRES_PASSWORD: portal
POSTGRES_DB: portal
networks:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
volumes:
- ./backend:/app
- ./docker/config.yaml:/config.yaml:ro
networks:
- backend
- proxy
- cms
console:
build:
context: ./backend
dockerfile: Dockerfile.dev
command: bash -c 'pip3 install -e . && tail -f /dev/null'
volumes:
- ./backend:/app
- ./docker/config.yaml:/config.yaml:ro
networks:
- cms
- backend
nginx:
image: nginx:latest
ports:
- "8080:8080"
volumes:
- ./docker/nginx.dev.conf:/etc/nginx/nginx.conf:ro
networks:
- proxy
cmsdb:
image: postgres:15
volumes:
- ./data/cmsdb:/var/lib/postgresql/data:rw
environment:
POSTGRES_PASSWORD: cms
POSTGRES_USER: cmsuser
POSTGRES_DB: cmsdb
networks:
- cms
cms-console:
build:
context: ../cms
command: tail -f /dev/null
volumes:
- "./docker/cms.docker.conf:/usr/local/etc/cms.conf:ro"
networks:
- cms
cms-admin-web-server:
build:
context: ../cms
command: cmsAdminWebServer 0
volumes:
- "./docker/cms.docker.conf:/usr/local/etc/cms.conf:ro"
ports:
- 8889:8889
networks:
- cms
cms-evaluation-service:
build:
context: ../cms
command: cmsEvaluationService -c ALL 0
volumes:
- "./docker/cms.docker.conf:/usr/local/etc/cms.conf:ro"
networks:
- cms
cms-scoring-service:
build:
context: ../cms
command: cmsScoringService -c ALL 0
volumes:
- "./docker/cms.docker.conf:/usr/local/etc/cms.conf:ro"
networks:
- cms
cms-worker-0:
build:
context: ../cms
command: cmsWorker 0
volumes:
- "./docker/cms.docker.conf:/usr/local/etc/cms.conf:ro"
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
networks:
- cms
networks:
backend:
cms:
proxy: