-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-test.yml
executable file
·133 lines (133 loc) · 3.64 KB
/
docker-compose-test.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: '3'
services:
proxy:
image: registry.openanalytics.eu/proxy/library/nginx:bookworm
restart: unless-stopped
container_name: oa-rdepot-proxy
labels:
eu.openanalytics.rdepot.container.name: 'oa-rdepot-proxy'
volumes:
- ./docker/proxy/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/proxy/rdepot-test.conf:/etc/nginx/sites-enabled/rdepot:ro
- repository:/opt/rdepot/repo/:ro
- logs:/var/log/nginx/
depends_on:
- backend
- repo
- frontend
ports:
- 8017:80
networks:
oa-rdepot:
ipv4_address: 192.168.49.20
aliases:
- oa-rdepot-proxy
backend:
image: registry.openanalytics.eu/openanalytics/rdepot-app:2.4.1
restart: unless-stopped
hostname: oa-rdepot-backend
container_name: oa-rdepot-backend
volumes:
- ./docker/backend/application-test.yml:/opt/rdepot/application.yml
- repositories:/opt/rdepot/repositories/
- snapshots:/opt/rdepot/generated/
- queue:/opt/rdepot/new/
- ./docker/testData/itestSourceFiles:/opt/testSourceFiles:ro
- ./docker/testData/itestGenerated:/opt/testGenerated:ro
- ./docker/testData/itestNewFiles:/opt/newFiles:ro
- ./docker/testData/itestTrashFiles:/opt/trashFiles:ro
ports:
- 8080:8080
depends_on:
- db
healthcheck:
test:
[
'CMD-SHELL',
"curl -f http://localhost:8080/backend/actuator/health -H 'Accept: application/json' || exit 1"
]
interval: 10s
timeout: 10s
retries: 10
environment:
- DB_URL=jdbc:postgresql://oa-rdepot-db:5432/rdepot
- DB_USERNAME=rdepot
networks:
oa-rdepot:
ipv4_address: 192.168.49.11
aliases:
- oa-rdepot-backend
db:
image: registry.openanalytics.eu/proxy/library/postgres:alpine
labels:
eu.openanalytics.rdepot.container.name: 'oa-rdepot-db'
restart: unless-stopped
hostname: oa-rdepot-db
container_name: oa-rdepot-db
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_DB=rdepot
- POSTGRES_USER=rdepot
volumes:
- ./docker/db/initial_scripts/:/docker-entrypoint-initdb.d/:ro
- ./docker/db/sql_files/:/opt/sql_files/:ro
networks:
oa-rdepot:
aliases:
- oa-rdepot-db
repo:
image: registry.openanalytics.eu/openanalytics/rdepot-repo:2.4.1
restart: unless-stopped
container_name: oa-rdepot-repo
labels:
eu.openanalytics.rdepot.container.name: 'oa-rdepot-repo'
hostname: oa-rdepot-repo
volumes:
- repository:/opt/rdepot/
networks:
oa-rdepot:
aliases:
- oa-rdepot-repo
frontend:
container_name: oa-rdepot-frontend
hostname: oa-rdepot-frontend
build:
context: .
restart: unless-stopped
labels:
eu.openanalytics.rdepot.container.name: 'oa-rdepot-frontend'
ports:
- 3001:8080
networks:
oa-rdepot:
ipv4_address: 192.168.49.13
aliases:
- oa-rdepot-frontend
environment:
- VITE_LOGIN_SIMPLE=true
- VITE_LOGIN_OIDC=false
- VITE_URL_PREFIX=/
- VITE_SERVER_ADDRESS=http://192.168.49.20/backend
selenium:
image: registry.openanalytics.eu/proxy/selenium/standalone-chrome:125.0
restart: unless-stopped
hostname: oa-rdepot-selenium
container_name: oa-rdepot-selenium
volumes:
- ./downloads:/home/seluser/Downloads
ports:
- 4444:4444
networks:
oa-rdepot:
ipv4_address: 192.168.49.12
networks:
oa-rdepot:
ipam:
config:
- subnet: 192.168.49.0/24
volumes:
repository:
repositories:
snapshots:
queue:
logs: