Skip to content

Commit

Permalink
Remove Docker-in-docker setup from Formicaio app
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Feb 14, 2025
1 parent 92e3078 commit f220fa8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 88 deletions.
43 changes: 15 additions & 28 deletions formicaio/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,29 @@
version: "3.7"

services:

Check notice on line 1 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Potentially using unsafe user in service "formicaio_proxy"

The default container user "root" can lead to security vulnerabilities. If you are using the root user, please try to specify a different user (e.g. "1000:1000") in the compose file or try to set the UID/PUID and GID/PGID environment variables to 1000.

Check notice on line 1 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Potentially using unsafe user in service "formicaio"

The default container user "root" can lead to security vulnerabilities. If you are using the root user, please try to specify a different user (e.g. "1000:1000") in the compose file or try to set the UID/PUID and GID/PGID environment variables to 1000.

app_proxy:
environment:

Check warning on line 3 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Invalid APP_HOST environment variable

The APP_HOST environment variable must be set to the hostname of the app_proxy container (e.g. "<app-id>_<web-container-name>_1").
APP_HOST: formicaio_formicaio_1
APP_PORT: 8080

docker:
image: docker:27.4.0-dind@sha256:b0c1179ea32ad77bdb7b852b037e54b11022304c2f2662af1954ef53869314b2
privileged: true
network_mode: host
stop_grace_period: 1m
restart: on-failure
APP_HOST: formicaio_formicaio_proxy_1
APP_PORT: 52100
container_name: formicaio-app_proxy_1
formicaio_proxy:
image: bochaco/formicaio_proxy:0.1.0@sha256:de09a722629d5c3f7139eb7a9035ee29d4c6eb804c6031a7af39fe63a4dd298f
environment:
DOCKER_ENSURE_BRIDGE: "dind0:10.32.0.1/16"
entrypoint: /entrypoint.sh
command: >
dockerd
--bridge dind0
--data-root /data/data
--exec-root /data/exec
--host unix:///data/docker.sock
--pidfile /data/docker.pid
volumes:
- ${APP_DATA_DIR}/entrypoint.sh:/entrypoint.sh
- ${APP_DATA_DIR}/data/docker:/data

FORMICAIO_ADDR: host.docker.internal:3000
FORMICAIO_PROXY_PORT: 52100
extra_hosts:
- host.docker.internal:host-gateway
container_name: formicaio-formicaio_proxy_1
formicaio:
image: bochaco/formicaio:latest@sha256:3c4285dc5bc751b74a8379e3653a86cd66333685198baed744457976a9cbab0d
image: bochaco/formicaio:0.3.0-native@sha256:b1cb3beedd399183b0ccf41622832cce67bc22b95edb3b07e24ae1a718632c36
privileged: true
restart: on-failure
network_mode: host

Check notice on line 19 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Service "formicaio" uses host network mode

The host network mode can lead to security vulnerabilities. If possible please use the default bridge network mode and expose the necessary ports.
stop_grace_period: 5s
environment:
DOCKER_SOCKET_PATH: /var/run/docker.sock
DB_PATH: /data
NODE_MGR_ROOT_DIR: /data
LEPTOS_SITE_ADDR: 0.0.0.0:3000
volumes:

Check notice on line 25 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Mounted file/directory "/formicaio/data/formicaio" doesn't exist

The volume "${APP_DATA_DIR}/data/formicaio:/data" tries to mount the file/directory "/formicaio/data/formicaio", but it is not present. This can lead to permission errors!
- ${APP_DATA_DIR}/data/formicaio:/data
- ${APP_DATA_DIR}/data/docker:/var/run
devices:
- /dev:/dev
container_name: formicaio-formicaio_1
47 changes: 0 additions & 47 deletions formicaio/entrypoint.sh

This file was deleted.

19 changes: 6 additions & 13 deletions formicaio/umbrel-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ manifestVersion: 1
id: formicaio
name: Formicaio
tagline: Il potere delle formiche
icon: https://svgshare.com/i/1B0F.svg
icon: ""
category: social
version: "0.1.1"
version: "0.3.0"
port: 52100
description: >-
Le formiche sono insetti sociali che vivono in colonie e sono
Expand All @@ -13,13 +13,9 @@ description: >-
Ants are social insects that live in colonies and are
known for their organization and cooperation.
Simplify your decentralized experience with this intuitive application,
designed to streamline your daily tasks when running nodes from home
on peer-to-peer (P2P) networks. Seamlessly participate in online
communities using the integrated Nostr client, and manage your
digital assets with ease through the built-in wallet. Receive, send,
and store tokens, rewards, and coins earned from running nodes or received
from third-party sources, all within a single, user-friendly interface.
Simplify your decentralized experience with this intuitive application
to run nodes on peer-to-peer (P2P) networks, like [Autonomi](https://autonomi.com)
network currently supported.
developer: bochaco
website: https://github.com/bochaco/formicaio
Expand All @@ -28,9 +24,6 @@ submission: https://github.com/getumbrel/umbrel-apps/pull/1565
dependencies: []
repo: https://github.com/bochaco/formicaio
support: https://github.com/bochaco/formicaio/issues
gallery:
- 1.png
- 2.png
- 3.png
gallery: []
releaseNotes: ""
path: ""

0 comments on commit f220fa8

Please sign in to comment.