-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_compose.yml
33 lines (32 loc) · 1.01 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
services:
playground:
image: "spawnlang/playground:latest"
build:
context: "."
dockerfile: "Dockerfile"
# NOTE: `privileged=true`and `pid=host` are required for `firejail` sandbox to work properly.
privileged: true
pid: "host"
restart: "unless-stopped"
ports:
- "5555:5555"
volumes:
- "playground:/playground/storage"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5555"]
interval: "5s"
timeout: "5s"
retries: 5
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
# NOTE: this values where selected because of current VM that runs playground.
deploy:
resources:
limits:
cpus: "1.80"
memory: "3584M"
volumes:
playground: # yamllint disable-line rule:empty-values