Sign inSign up

akeb/mygoodip

By akeb

Updated 11 months ago

Simple php WebServer

Image
Web servers
0

6.5K

akeb/mygoodip repository overview

MyGoodIP

Docker compose

---
services:
  server:
    container_name: "mygoodip"
    image: "akeb/mygoodip:latest"
    restart: always
    env_file:
      - ./.env
    volumes:
      - ./logs/php/:/var/log/php/:rw
      - ./logs/nginx/:/var/log/nginx/:rw
    ports:
      - "${NGINX_PORT}:80"
    environment:
      - MYSQL_HOST=${MYSQL_HOST}
      - MYSQL_PORT=${MYSQL_PORT}
      - MYSQL_USERNAME=${MYSQL_USERNAME}
      - MYSQL_PASSWORD=${MYSQL_PASSWORD}
      - MYSQL_DB_NAME=${MYSQL_DB_NAME}
    depends_on:
      mysql:
          condition: service_healthy

  mysql:
    container_name: mygoodip-mysql
    image: mysql:latest
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
    volumes:
      - ./mysql_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u", "${MYSQL_USERNAME}", "--password=${MYSQL_PASSWORD}"]
      start_period: 5s
      interval: 5s
      timeout: 5s
      retries: 55
TZ=Europe/Moscow

NGINX_PORT=60080
EXTERNAL_MYSQL_PORT=60070
MYSQL_ROOT_PASSWORD=RootPassword

MYSQL_DEBUG=false
MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_USERNAME=root
MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
MYSQL_DB_NAME=mygoodip

MYSQL_DONT_USE_SLAVE=true
# MYSQL_SLAVE_HOST=mysql
# MYSQL_SLAVE_PORT=3306
# MYSQL_SLAVE_USERNAME=root
# MYSQL_SLAVE_PASSWORD=${MYSQL_ROOT_PASSWORD}
# MYSQL_SLAVE_DB_NAME=mygoodip

PASSWORD_SALT=bHchLzC3B99Ss2ghc2gkDdtgCG7vKtoj

# SMTP settings for sending emails (e.g. password recovery)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=your_smtp_username
SMTP_PASSWORD=your_smtp_password
SMTP_TLS=false
SMTP_SSL=true

# Application settings
APP_DEBUG=true
APP_SIGNUP_ACTIVE=true
APP_SIGNIN_ACTIVE=true

# OpenID Connect
# OPENIDCONNECT_PROVIDER=https://auth.example.com/application/o/my-good-ip/
# OPENIDCONNECT_CLIENT_ID=
# OPENIDCONNECT_CLIENT_SECRET=
# OPENIDCONNECT_BUTTON="OIDC"
# OPENIDCONNECT_SCOPE="email profile openid"
# OPENIDCONNECT_REGISTER=true

# OAuth2
# OAUTH_CLIENT_ID=
# OAUTH_CLIENT_SECRET=
# OAUTH_AUTHORIZATION_ENDPOINT=https://auth.example.com/api/v1/oauth2/authorize/
# OAUTH_TOKEN_ENDPOINT=https://auth.example.com/api/v1/oauth2/token/
# OAUTH_USERINFO_ENDPOINT=https://auth.example.com/api/v1/oauth2/info/
# OAUTH_BUTTON="oAuth"
# OAUTH_SCOPE="self_profile"
# OAUTH_REGISTER=true

# Memcached
MEMCACHED_HOST=memcached
MEMCACHED_PORT=11211

# Telegram
TELEGRAM_BOT_TOKEN=

Environments

EnvironmentDefaultTypeDescription
-------------------------------------------------------------------------------------
TZUTCstringTimezone
PASSWORD_SALTstringPassword Salt
-------------------------------------------------------------------------------------
MYSQL_DEBUGfalsebooleanMySQL Debug logs
MYSQL_HOSTlocalhoststringMySQL Host
MYSQL_PORT3306integerMySQL Port
MYSQL_USERNAMErootstringMySQL User
MYSQL_PASSWORDstringMySQL Password
MYSQL_DB_NAMEmygoodipstringMySQL DB Name
MYSQL_DONT_USE_SLAVEtruebooleanMySQL Dont Use Slave
MYSQL_SLAVE_HOSTMYSQL_HOSTstringMySQL Slave Host
MYSQL_SLAVE_PORTMYSQL_PORTstringMySQL Slave Port
MYSQL_SLAVE_USERNAMEMYSQL_USERNAMEstringMySQL Slave User
MYSQL_SLAVE_PASSWORDMYSQL_PASSWORDstringMySQL Slave Password
MYSQL_SLAVE_DB_NAMEMYSQL_DB_NAMEstringMySQL Slave DB Name
-------------------------------------------------------------------------------------
APP_SIGNIN_ACTIVEtruebooleanApp Sign In Active
APP_SIGNUP_ACTIVEtruebooleanApp Sign Up Active
APP_DEBUGfalsebooleanApp Debug
-------------------------------------------------------------------------------------
SMTP_HOSTstringSMTP Host
SMTP_PORT25integerSMTP Port
SMTP_USERNAMEstringSMTP User
SMTP_PASSWORDstringSMTP Password
SMTP_TLSfalsebooleanSMTP TLS
SMTP_SSLfalsebooleanSMTP SSL
-------------------------------------------------------------------------------------
OPENIDCONNECT_PROVIDERstringOpenID Connect Provider URL
OPENIDCONNECT_CLIENT_IDstringOpenID Connect Client Id
OPENIDCONNECT_CLIENT_SECRETstringOpenID Connect Client Secret
OPENIDCONNECT_BUTTONstringOpenID Connect Button Title
OPENIDCONNECT_SCOPEemail profile openidstringOpenID Connect Scope
OPENIDCONNECT_REGISTERtruebooleanOpenID Connect Register Allow
-------------------------------------------------------------------------------------
OAUTH_CLIENT_IDstringOAuth Client Id
OAUTH_CLIENT_SECRETstringOAuth Client Secret
OAUTH_AUTHORIZATION_ENDPOINTstringOAuth Authorization Endpoint
OAUTH_TOKEN_ENDPOINTstringOAuth Token Endpoint
OAUTH_USERINFO_ENDPOINTstringOAuth Userinfo Endpoint
OAUTH_BUTTONstringOAuth Button Title
OAUTH_SCOPEself_profilestringOAuth Scope
OAUTH_REGISTERtruebooleanOAuth Register Allow
-------------------------------------------------------------------------------------
MEMCACHED_HOSTstringMemcached Host
MEMCACHED_PORT11211integerMemcached Port
-------------------------------------------------------------------------------------
TELEGRAM_BOT_TOKENstringTelegram Bot Token

Tag summary

Content type

Image

Digest

sha256:c58192b22

Size

352.7 MB

Last updated

11 months ago

docker pull akeb/mygoodip