version: '3' services: server: image: rusher81572/alpine 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: ["sh", "-c", "set -e; printf 'http://mirror.clarkson.edu/alpine/edge/main\nhttp://mirror.clarkson.edu/alpine/edge/community' > /etc/apk/repositories; apk update; apk add --no-cache docker py3-setuptools git g++ make nodejs-current nodejs-current-npm openrc procps python3 supervisor; 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-pm2.config.json"] environment: COMPOSE_HTTP_TIMEOUT: 600 privileged: true