-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (48 loc) · 1.42 KB
/
docker-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
version: '3.6'
# x-default defines a template set of config options that are used wherever it
# is applied with <<: *default
x-default: &default
entrypoint: ["echo", "App Loaded"]
networks:
- proxynet
restart: "no"
# Define the main services: shinyproxy and watchtower
services:
# Shinyproxy handles the launching of containers
shinyproxy:
build: .
image: ghcr.io/ccao-data/service-shiny-proxy:latest
container_name: service-shiny-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8080:8080"
networks:
- proxynet
# Environmental variables are loaded from .env file
environment:
- CCAO_REGISTRY_URL
- REDIS_PASSWORD
secrets:
- ENV_FILE
restart: unless-stopped
# Fake app slugs to ensure that shinyproxy always has an image to run
# x-default defines properties that are copied to each slug
app-shiny-rpie:
<<: *default
image: ${CCAO_REGISTRY_URL}/app-shiny-rpie:latest
app-shiny-rpie-dashboard:
<<: *default
image: ${CCAO_REGISTRY_URL}/app-shiny-rpie-dashboard:latest
# Define network to be shared between containers
# Subnet is changed so as not to conflict with the CCAO default network
networks:
proxynet:
ipam:
config:
- subnet: 211.27.0.0/16
name: service-shiny-proxy-net
# Database credential files that get shared to individual containers
secrets:
ENV_FILE:
file: secrets/ENV_FILE