-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
116 lines (111 loc) · 3.47 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
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
version: '3'
services:
editor:
image: scalafiddle/scalafiddle-editor:latest
restart: always
container_name: editor
volumes:
- sfdata:/data
- ./config/editor/logback.xml:/app/config/logback.xml
ports:
- "9000:9000"
environment:
- JAVA_OPTS=-Xmx1G
- SCALAFIDDLE_SQL_URL=jdbc:postgresql://postgres/scalafiddle
- SCALAFIDDLE_SQL_USER=scalafiddle
- SCALAFIDDLE_SQL_PASSWORD
- APPLICATION_SECRET
- SCALAFIDDLE_SQL_CONFIG=postgre
- SCALAFIDDLE_COMPILER_URL=https://embed.scalafiddle.io
- SCALAFIDDLE_URL=https://scalafiddle.io
- GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET
- SCALAFIDDLE_AUTH_URL=https://scalafiddle.io/authenticate
- SCALAFIDDLE_LIBRARIES_URL=https://raw.githubusercontent.com/scalafiddle/scalafiddle-io/master/libraries.json
- SCALAFIDDLE_METRICS_STATSD_HOSTNAME=metrics
logging:
driver: gelf
options:
gelf-address: "udp://localhost:5000"
router:
image: scalafiddle/scalafiddle-router:latest
depends_on:
- editor
restart: always
container_name: router
volumes:
- sfdata:/data
- ./config/router/logback.xml:/app/config/logback.xml
ports:
- "8888:8880"
environment:
- JAVA_OPTS=-Xmx1G
- SCALAFIDDLE_LIBRARIES_URL=https://raw.githubusercontent.com/scalafiddle/scalafiddle-io/master/libraries.json
- SCALAFIDDLE_CACHE_DIR=/data/router/cache
- SCALAFIDDLE_SOURCE_URL=http://editor:9000/raw/
- SCALAFIDDLE_EDIT_URL=http://editor:9000/
- SCALAFIDDLE_METRICS_STATSD_HOSTNAME=metrics
- SCALAFIDDLE_SECRET
logging:
driver: gelf
options:
gelf-address: "udp://localhost:5000"
compiler-2.12-sjs0.6:
image: scalafiddle/scalafiddle-core-2.12-sjs0.6:latest
depends_on:
- router
restart: always
volumes:
- sfdata:/data
- ./config/compiler/logback.xml:/app/config/logback.xml
environment:
- JAVA_OPTS=-Xmx3G
- SCALAFIDDLE_ROUTER_URL=ws://router:8880/compiler
- COURSIER_CACHE=/data/compiler/coursier
- SCALAFIDDLE_LIBCACHE=/data/compiler/extlibs
- SCALAFIDDLE_METRICS_STATSD_HOSTNAME=metrics
- SCALAFIDDLE_SECRET
logging:
driver: gelf
options:
gelf-address: "udp://localhost:5000"
compiler-2.12-sjs1:
image: scalafiddle/scalafiddle-core-2.12-sjs1:latest
depends_on:
- router
restart: always
volumes:
- sfdata:/data
- ./config/compiler/logback.xml:/app/config/logback.xml
environment:
- JAVA_OPTS=-Xmx3G
- SCALAFIDDLE_ROUTER_URL=ws://router:8880/compiler
- COURSIER_CACHE=/data/compiler/coursier
- SCALAFIDDLE_LIBCACHE=/data/compiler/extlibs
- SCALAFIDDLE_METRICS_STATSD_HOSTNAME=metrics
- SCALAFIDDLE_SECRET
logging:
driver: gelf
options:
gelf-address: "udp://localhost:5000"
compiler-2.11-sjs0.6:
image: scalafiddle/scalafiddle-core-2.11-sjs0.6:latest
depends_on:
- router
restart: always
volumes:
- sfdata:/data
- ./config/compiler/logback.xml:/app/config/logback.xml
environment:
- JAVA_OPTS=-Xmx3G
- SCALAFIDDLE_ROUTER_URL=ws://router:8880/compiler
- COURSIER_CACHE=/data/compiler/coursier
- SCALAFIDDLE_LIBCACHE=/data/compiler/extlibs
- SCALAFIDDLE_METRICS_STATSD_HOSTNAME=metrics
- SCALAFIDDLE_SECRET
logging:
driver: gelf
options:
gelf-address: "udp://localhost:5000"
volumes:
sfdata: