-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
92 lines (92 loc) · 2.42 KB
/
docker-compose.yaml
File metadata and controls
92 lines (92 loc) · 2.42 KB
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
version: '3'
services:
proxy:
image: nginx:alpine
container_name: oa-rdepot-proxy
restart: unless-stopped
volumes:
- ./docker/compose/proxy/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/compose/proxy/rdepot.conf:/etc/nginx/sites-enabled/rdepot:ro
- repository:/opt/rdepot/repo/:ro
- logs:/var/log/nginx/
ports:
- ${RDEPOT_PORT:-80}:80
depends_on:
- backend
- repo
- frontend
networks:
- oa-rdepot
db:
image: postgres:alpine
restart: unless-stopped
hostname: oa-rdepot-db
container_name: oa-rdepot-db
environment:
- POSTGRES_DB=rdepot
- POSTGRES_USER=rdepot
- POSTGRES_PASSWORD=mysecretpassword
networks:
- oa-rdepot
backend:
build:
dockerfile: docker/build/app-standalone/Dockerfile
cache_from:
- openanalytics/rdepot-app:2.7.0
restart: unless-stopped
hostname: oa-rdepot-backend
container_name: oa-rdepot-backend
volumes:
- repositories:/opt/rdepot/repositories/
- snapshots:/opt/rdepot/generated/
- queue:/opt/rdepot/new/
- ./docker/compose/backend/application.yaml:/opt/rdepot/application.yml
networks:
- oa-rdepot
depends_on:
- db
environment:
- DB_URL=jdbc:postgresql://oa-rdepot-db:5432/rdepot
- DB_USERNAME=rdepot
- DB_PASSWORD=mysecretpassword
- ALLOWED-ORIGIN=http://localhost:${RDEPOT_PORT:-80}
healthcheck:
test: ["CMD-SHELL", "if [ \"$$(curl -I localhost:8080 2>/dev/null | grep HTTP/1.1 | cut -d\" \" -f2)\" != \"302\" ]; then exit 1; else exit 0; fi;"]
interval: 10s
timeout: 10s
retries: 10
repo:
build:
dockerfile: docker/build/repo-standalone/Dockerfile
cache_from:
- openanalytics/rdepot-repo:2.7.0
restart: unless-stopped
hostname: oa-rdepot-repo
container_name: oa-rdepot-repo
volumes:
- repository:/opt/rdepot/
- ./docker/compose/repo/application.yaml:/opt/repo/application.yml
networks:
- oa-rdepot
frontend:
container_name: oa-rdepot-frontend
image: openanalytics/rdepot-client:2.7.0
restart: unless-stopped
networks:
- oa-rdepot
environment:
- VITE_LOGIN_SIMPLE=true
- VITE_LOGIN_OIDC=false
- VITE_URL_PREFIX=/
- VITE_SERVER_ADDRESS=http://localhost:${RDEPOT_PORT:-80}/backend
networks:
oa-rdepot:
ipam:
config:
- subnet: 192.168.49.0/24
volumes:
repository:
repositories:
snapshots:
queue:
logs: