first commit
This commit is contained in:
1
dockers/ethercalc/.env
Symbolic link
1
dockers/ethercalc/.env
Symbolic link
@ -0,0 +1 @@
|
||||
../../config/dockers.env
|
9
dockers/ethercalc/Dockerfile
Normal file
9
dockers/ethercalc/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM node:4.8
|
||||
|
||||
RUN useradd ethercalc --create-home
|
||||
RUN npm install -g ethercalc pm2 || true
|
||||
RUN rm -rf /usr/local/lib/node_modules/ethercalc/node_modules/nodemailer/ || true
|
||||
|
||||
USER ethercalc
|
||||
EXPOSE 8000
|
||||
CMD ["sh", "-c", "REDIS_HOST=$REDIS_PORT_6379_TCP_ADDR REDIS_PORT=$REDIS_PORT_6379_TCP_PORT pm2 start -x `which ethercalc` -- --cors && pm2 logs"]
|
39
dockers/ethercalc/docker-compose.yml
Normal file
39
dockers/ethercalc/docker-compose.yml
Normal file
@ -0,0 +1,39 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
|
||||
calc:
|
||||
image: audreyt/ethercalc
|
||||
container_name: ${ethercalcServName}
|
||||
# ports:
|
||||
# - 8082:8000
|
||||
networks:
|
||||
- ethercalcNet
|
||||
env_file:
|
||||
- ../../secret/env-${ethercalcServName}
|
||||
links:
|
||||
- redis:redis
|
||||
restart: ${restartPolicy}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${ethercalcServName}.rule=Host(`${calcHost}.${domain}`)"
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
container_name: ${ethercalcDBName}
|
||||
networks:
|
||||
- ethercalcNet
|
||||
volumes:
|
||||
- calcDB:/data
|
||||
command: redis-server --appendonly yes
|
||||
restart: ${restartPolicy}
|
||||
#on autorise 40% du cpu car sinon les docs mettent un temps fou à charger
|
||||
cpus: 0.4
|
||||
|
||||
volumes:
|
||||
calcDB:
|
||||
|
||||
networks:
|
||||
ethercalcNet:
|
||||
external: true
|
||||
name: ethercalcNet
|
Reference in New Issue
Block a user