Last active
October 13, 2021 06:53
-
-
Save LennyLip/af05a013e0fecfda975263c78f2e4bbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=docker-run | |
[Service] | |
User=glot | |
Group=glot | |
Restart=always | |
RestartSec=10 | |
ExecStart=/home/glot/bin/docker-run | |
Environment="SERVER_LISTEN_ADDR=0.0.0.0" | |
Environment="SERVER_LISTEN_PORT=8088" | |
Environment="SERVER_WORKER_THREADS=10" | |
Environment="API_ACCESS_TOKEN=123" | |
Environment="DOCKER_UNIX_SOCKET_PATH=/var/run/docker.sock" | |
Environment="DOCKER_UNIX_SOCKET_READ_TIMEOUT=3" | |
Environment="DOCKER_UNIX_SOCKET_WRITE_TIMEOUT=3" | |
Environment="DOCKER_CONTAINER_HOSTNAME=glot" | |
Environment="DOCKER_CONTAINER_USER=glot" | |
Environment="DOCKER_CONTAINER_MEMORY=1000000000" | |
Environment="DOCKER_CONTAINER_NETWORK_DISABLED=false" | |
Environment="DOCKER_CONTAINER_ULIMIT_NOFILE_SOFT=90" | |
Environment="DOCKER_CONTAINER_ULIMIT_NOFILE_HARD=100" | |
Environment="DOCKER_CONTAINER_ULIMIT_NPROC_SOFT=90" | |
Environment="DOCKER_CONTAINER_ULIMIT_NPROC_HARD=100" | |
Environment="DOCKER_CONTAINER_CAP_DROP=MKNOD NET_RAW NET_BIND_SERVICE" | |
Environment="DOCKER_CONTAINER_READONLY_ROOTFS=true" | |
Environment="DOCKER_CONTAINER_TMP_DIR_PATH=/tmp" | |
Environment="DOCKER_CONTAINER_TMP_DIR_OPTIONS=rw,noexec,nosuid,size=1065536k" | |
Environment="DOCKER_CONTAINER_WORK_DIR_PATH=/home/glot" | |
Environment="DOCKER_CONTAINER_WORK_DIR_OPTIONS=rw,exec,nosuid,size=10131072k" | |
Environment="RUN_MAX_EXECUTION_TIME=2400" | |
Environment="RUN_MAX_OUTPUT_SIZE=20971520" | |
Environment="RUST_LOG=debug" | |
[Install] | |
WantedBy=multi-user.target |
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment