picluster/docker-compose.yml
Verita84 48111c89c0 fix
2021-08-25 08:44:55 -06:00

19 lines
1.0 KiB
YAML

version: '3.9'
services:
server:
image: "ubuntu:rolling"
restart: "always"
volumes:
- .:/picluster
- ./docker-compose.config.json:/picluster/config.json
- ./picluster-pm2.config-example.json:/picluster/picluster-pm2.config.json
ports:
- "3000:3000"
- "3001:3001"
- "3003:3003"
working_dir: /picluster
command: su -s /bin/sh -lc "export DEBIAN_FRONTEND='noninteractive';apt-get update; apt-get install -y npm nodejs build-essential containerd docker.io containerd runc git python3 make g++ docker procps supervisor; cd /picluster;npm install;cd /picluster/server;/usr/bin/dockerd&npm install;cd /picluster/agent;npm install;cd /picluster/web;npm install;cd /picluster;printf \"[supervisord]\n\n[program:dockerd]\ncommand=dockerd\" > /etc/supervisor.conf; npm install -g pm2;supervisord -c /etc/supervisor.conf; npm install --production --unsafe-perm; pm2-docker start /picluster/picluster-pm2.config.json"
environment:
COMPOSE_HTTP_TIMEOUT: 600
privileged: true