-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (32 loc) · 1.07 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
version: "3"
x-restart-policy:
&restart-policy
restart: unless-stopped
services:
bot:
<<: *restart-policy
pull_policy: build
build: .
depends_on: [ piston ]
volumes:
- ./logs:/bot/logs
environment:
REST_URL: ${REST_URL:-http://localhost:7159}
GW_URL: ${GW_URL:-ws://localhost:7160}
CDN_URL: ${CDN_URL:-http://localhost:7161}
PISTON_URL: ${PISTON_URL:-http://localhost:2309}
network_mode: host # used to connect to a selfhosted instance
piston:
<<: *restart-policy
image: ghcr.io/engineer-man/piston
environment:
PISTON_REPO_URL: https://github.com/ooliver1/dewel/releases/download/pkgs/index.csv
PISTON_COMPILE_MEMORY_LIMIT: "104857600" # 100MB
PISTON_RUN_MEMORY_LIMIT: "52428800"
PISTON_LIMIT_OVERRIDES: '{"rust": {"compile_memory_limit":524288000}, "javascript": {"run_memory_limit": 1073741824}}' # 500MB, 1GB
volumes:
- ./data/piston/packages:/piston/packages
tmpfs:
- /piston/jobs:exec,uid=1000,gid=1000,mode=711
- /tmp:exec
ports: [ 127.0.0.1:2309:2000 ]