Skip to content

Instantly share code, notes, and snippets.

View ramcoelho's full-sized avatar

Ricardo Coelho ramcoelho

View GitHub Profile
@ramcoelho
ramcoelho / docker-api-port.md
Created December 27, 2020 20:52 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@ramcoelho
ramcoelho / Dockerfile
Last active February 23, 2021 23:14
nexy/php-fpm:8.0.2
FROM php:8.0.2-fpm
LABEL maintainer="Ricardo Coelho <[email protected]>"
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
git \
sudo \
libpq-dev \
libicu-dev \
libcurl4-openssl-dev \
networks:
proxy:
external: true
services:
proxy:
image: traefik:2.9.1
command:
- --api.insecure=true
- --api.dashboard=true
- --api.debug=true
services:
authentik:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.10.1}
restart: unless-stopped
command: server
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}