forked from cuulee/picluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
18 lines (18 loc) · 904 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: '3'
services:
server:
image: "node: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 git python make g++ docker procps 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/picluster-pm2.config.json"]
environment:
COMPOSE_HTTP_TIMEOUT: 600
privileged: true