diff --git a/.env b/.env index 5353f6c..0168bc3 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -REDIS_PORT_6379_TCP_ADDR=calcnetignet_redis -REDIS_PORT_6379_TCP_PORT=6379 +ETHERCALC_DISABLE_ROOM_INDEX=1 +ETHERCALC_ROOM_CREATE_LIMIT=1 diff --git a/compose.yml b/compose.yml index ef1de43..29b36ff 100644 --- a/compose.yml +++ b/compose.yml @@ -1,18 +1,23 @@ services: - redis: - image: redis:latest - container_name: calcnetignet_redis - volumes: - - ./volumes/redis:/data - command: redis-server --appendonly yes - restart: unless-stopped ethercalc: - image: audreyt/ethercalc:latest + image: audreyt/ethercalc:tatest container_name: calcnetignet_ethercalc - depends_on: - - redis - env_file: - - .env + restart: unless-stopped + read_only: true + security_opt: + - no-new-privileges:true + tmpfs: + - /tmp:size=64m,mode=1777 ports: - "127.0.0.1:9004:8000" - restart: unless-stopped + volumes: + - ./volumes/ethercalc:/data + env_file: + - .env + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://localhost:8000/_health >/dev/null || exit 1"] + interval: 10s + timeout: 3s + retries: 6 + start_period: 15s +