-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (72 loc) · 2.09 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
# Make sure pg15test database is already running
# The database is required for the torkeep service but is a separate task for a couple of reasons:
# 1. Able to restart services and allow the database to persist
# 2. The way CADC's postgres-dev works means that docker-compose "dependsOn" won't work
services:
reg:
image: images.opencadc.org/core/reg:1.1.1
container_name: reg
user: "tomcat:tomcat"
ports:
- "8881:8080"
volumes:
- ./config/reg:/config
- ./config/cacerts:/config/cacerts
- ./config/cadc-registry.properties:/config/cadc-registry.properties:ro
links:
- "nginx:src-data-repo.co.uk"
environment:
VIRTUAL_HOST: src-data-repo.co.uk
VIRTUAL_PATH: /reg/
networks:
- mynetwork
baldur:
image: images.opencadc.org/storage-inventory/baldur:0.3.7
container_name: baldur
user: "tomcat:tomcat"
ports:
- "8882:8080"
volumes:
- ./config/baldur:/config
- ./config/cacerts:/config/cacerts
- ./config/cadc-registry.properties:/config/cadc-registry.properties:ro
links:
- "nginx:src-data-repo.co.uk"
environment:
VIRTUAL_HOST: src-data-repo.co.uk
VIRTUAL_PATH: /baldur/
networks:
- mynetwork
torkeep:
image: images.opencadc.org/caom2/torkeep:0.1.4
container_name: torkeep
user: "tomcat:tomcat"
ports:
- "8883:8080"
volumes:
- ./config/torkeep:/config
- ./config/cacerts:/config/cacerts
- ./config/cadc-registry.properties:/config/cadc-registry.properties:ro
environment:
VIRTUAL_HOST: src-data-repo.co.uk
VIRTUAL_PATH: /torkeep/
restart: always
links:
- "nginx:src-data-repo.co.uk"
networks:
- mynetwork
nginx:
image: nginxproxy/nginx-proxy
container_name: nginx
volumes:
- ./ssl/server.crt:/etc/nginx/certs/src-data-repo.co.uk.crt:ro
- ./ssl/server.key:/etc/nginx/certs/src-data-repo.co.uk.key:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- "80:80"
- "443:443"
networks:
- mynetwork
networks:
mynetwork:
driver: bridge