Skip to content

Instantly share code, notes, and snippets.

@Bouni
Created May 22, 2025 07:25
Show Gist options
  • Save Bouni/ce6e773d3728dbd36136abbff3296879 to your computer and use it in GitHub Desktop.
Save Bouni/ce6e773d3728dbd36136abbff3296879 to your computer and use it in GitHub Desktop.

Revisions

  1. Bouni created this gist May 22, 2025.
    57 changes: 57 additions & 0 deletions docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    services:

    caddy:
    container_name: caddy
    image: caddy
    volumes:
    - /opt/docker/caddy/Caddyfile:/etc/caddy/Caddyfile
    - /opt/docker/caddy/data:/data
    - /opt/docker/caddy/config:/config
    restart: unless-stopped
    ports:
    - "443:443"
    networks:
    - webserver

    alamos-fe2-db:
    image: mongo:5.0.29
    container_name: alamos-fe2-db
    volumes:
    - /opt/docker/alamos/data/fe2/config/database/configdb:/data/configdb
    - /opt/docker/alamos/data/fe2/config/database:/data/db
    restart: unless-stopped
    networks:
    - alamos

    alamos-fe2-server:
    image: alamosgmbh/fe2:2.36.158-STABLE
    container_name: alamos-fe2-server
    hostname: ALAMOS-FE2
    env_file:
    - /opt/docker/alamos/config.env
    volumes:
    - /opt/docker/alamos/data/fe2/logs:/Logs
    - /opt/docker/alamos/data/fe2/config:/Config
    - /opt/docker/alamos/data/cacerts:/usr/lib/jvm/default-jvm/jre/lib/security/cacerts
    - /var/lib/dbus/machine-id:/var/lib/dbus/machine-id
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    healthcheck:
    test: curl --fail http://localhost:83/ || exit 1
    interval: 60s
    retries: 3
    start_period: 60s
    timeout: 10s
    depends_on:
    - alamos-fe2-db
    networks:
    - alamos
    - webserver

    networks:
    webserver:
    name: webserver
    driver: bridge
    alamos:
    name: alamos