-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
70 lines (64 loc) · 1.99 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
rccremote: &rcc
build:
context: .
dockerfile: Dockerfile-rcc
container_name: rccremote
command: rccremote
volumes:
# !!! place your robot code in here
- ./data/robots:/robots
# !!! place your certs in here
- ./certs:/etc/certs:ro
# !!! place ZIP files of externally created hololibs (e.g. on Windows) in here
- ./data/hololib_zip:/hololib_zip
# internal stuff
- ./scripts:/scripts
- hololib_zip_internal:/hololib_zip_internal
- robocorp_data:/opt/robocorp
- robotmk_rcc_home:/opt/robotmk/rcc_home
networks:
- app-network
# only uncomment for testing
rcc:
<<: *rcc
container_name: rcc
command: rcc
volumes:
- ./scripts:/scripts
- ./data/robots:/robots
- ./data/robots-samples:/robots-samples
- ./certs:/etc/certs:ro
- ./config/rcc-profiles.d:/etc/rcc-profiles.d:ro
environment:
- RCC_REMOTE_ORIGIN=https://${SERVER_NAME}:${NGINX_PORT:-443}
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- rccremote
volumes:
- ./config/nginx.conf.template:/etc/nginx/templates/nginx.conf.template
- ./certs:/etc/nginx/certs
- ./scripts/entrypoint-nginx.sh:/docker-entrypoint.d/entrypoint-nginx.sh
- ./scripts/openssl.cnf.template:/openssl.cnf.template
ports:
- "443:443"
environment:
- SERVER_NAME=${SERVER_NAME}
networks:
app-network:
aliases:
- ${SERVER_NAME}
networks:
app-network:
driver: bridge
volumes:
data-volume:
driver: local
# exported hololibs from Robots in the /robots directory
hololib_zip_internal: # the robocorp data directory of the shared holotree (where everything gets imported
# before rccremote starts)
robocorp_data: # the default RCC basedir where all ROBOCORP_HOMEs are set to on linux client machines.
# This path is the same which the Linux Scheduler sets for ROBOCORP_HOMEs on test machines.
robotmk_rcc_home: