-
Notifications
You must be signed in to change notification settings - Fork 11
/
compose.yaml
91 lines (85 loc) · 1.69 KB
/
compose.yaml
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
version: '3.8'
services:
db:
image: docker.io/postgres:12
container_name: db
hostname: db
environment:
POSTGRES_PASSWORD: velryba
POSTGRES_USER: openscanhub
POSTGRES_DB: openscanhub
ports:
- "5432:5432"
networks:
- internal-network
osh-hub:
image: osh-hub
build:
args:
- "CENTOS_RELEASE"
context: .
dockerfile: ./containers/hub/Dockerfile
container_name: osh-hub
hostname: osh-hub
depends_on:
- db
ports:
- "8000:8000"
networks:
- internal-network
volumes:
- ./:/src:ro,z
- hub-static:/src/osh/hub/static
- hub-tasks:/src/osh/hub/tasks
- hub-upload:/src/osh/hub/upload
- hub-worker:/src/osh/hub/worker
- coverage:/cov:U
stdin_open: true
tty: true
osh-worker:
image: osh-worker
build:
args:
- "CENTOS_RELEASE"
context: .
dockerfile: ./containers/worker.Dockerfile
container_name: osh-worker
hostname: osh-worker
depends_on:
- osh-hub
networks:
- internal-network
volumes:
- ./:/src:z
- coverage:/cov
privileged: true
stdin_open: true
tty: true
osh-client:
image: osh-client
build:
args:
- "CENTOS_RELEASE"
context: .
dockerfile: ./containers/client.Dockerfile
container_name: osh-client
hostname: osh-client
depends_on:
- osh-hub
networks:
- internal-network
volumes:
- ./:/src:ro,z
- coverage:/cov
stdin_open: true
tty: true
profiles:
- full-dev
networks:
internal-network:
volumes:
hub-static:
hub-tasks:
hub-upload:
hub-worker:
coverage: