first commit

This commit is contained in:
2024-06-03 18:43:35 +02:00
parent 2da01a3f6e
commit f501d519af
883 changed files with 71550 additions and 2 deletions

1
dockers/ethercalc/.env Symbolic link
View File

@ -0,0 +1 @@
../../config/dockers.env

View 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"]

View 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