---
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=
| Environment | Default | Type | Description |
|---|---|---|---|
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| TZ | UTC | string | Timezone |
| PASSWORD_SALT | string | Password Salt | |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| MYSQL_DEBUG | false | boolean | MySQL Debug logs |
| MYSQL_HOST | localhost | string | MySQL Host |
| MYSQL_PORT | 3306 | integer | MySQL Port |
| MYSQL_USERNAME | root | string | MySQL User |
| MYSQL_PASSWORD | string | MySQL Password | |
| MYSQL_DB_NAME | mygoodip | string | MySQL DB Name |
| MYSQL_DONT_USE_SLAVE | true | boolean | MySQL Dont Use Slave |
| MYSQL_SLAVE_HOST | MYSQL_HOST | string | MySQL Slave Host |
| MYSQL_SLAVE_PORT | MYSQL_PORT | string | MySQL Slave Port |
| MYSQL_SLAVE_USERNAME | MYSQL_USERNAME | string | MySQL Slave User |
| MYSQL_SLAVE_PASSWORD | MYSQL_PASSWORD | string | MySQL Slave Password |
| MYSQL_SLAVE_DB_NAME | MYSQL_DB_NAME | string | MySQL Slave DB Name |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| APP_SIGNIN_ACTIVE | true | boolean | App Sign In Active |
| APP_SIGNUP_ACTIVE | true | boolean | App Sign Up Active |
| APP_DEBUG | false | boolean | App Debug |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| SMTP_HOST | string | SMTP Host | |
| SMTP_PORT | 25 | integer | SMTP Port |
| SMTP_USERNAME | string | SMTP User | |
| SMTP_PASSWORD | string | SMTP Password | |
| SMTP_TLS | false | boolean | SMTP TLS |
| SMTP_SSL | false | boolean | SMTP SSL |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| OPENIDCONNECT_PROVIDER | string | OpenID Connect Provider URL | |
| OPENIDCONNECT_CLIENT_ID | string | OpenID Connect Client Id | |
| OPENIDCONNECT_CLIENT_SECRET | string | OpenID Connect Client Secret | |
| OPENIDCONNECT_BUTTON | string | OpenID Connect Button Title | |
| OPENIDCONNECT_SCOPE | email profile openid | string | OpenID Connect Scope |
| OPENIDCONNECT_REGISTER | true | boolean | OpenID Connect Register Allow |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| OAUTH_CLIENT_ID | string | OAuth Client Id | |
| OAUTH_CLIENT_SECRET | string | OAuth Client Secret | |
| OAUTH_AUTHORIZATION_ENDPOINT | string | OAuth Authorization Endpoint | |
| OAUTH_TOKEN_ENDPOINT | string | OAuth Token Endpoint | |
| OAUTH_USERINFO_ENDPOINT | string | OAuth Userinfo Endpoint | |
| OAUTH_BUTTON | string | OAuth Button Title | |
| OAUTH_SCOPE | self_profile | string | OAuth Scope |
| OAUTH_REGISTER | true | boolean | OAuth Register Allow |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| MEMCACHED_HOST | string | Memcached Host | |
| MEMCACHED_PORT | 11211 | integer | Memcached Port |
| ---------------------------- | -------------------- | -------- | ----------------------------- |
| TELEGRAM_BOT_TOKEN | string | Telegram Bot Token |
Content type
Image
Digest
sha256:c58192b22…
Size
352.7 MB
Last updated
11 months ago
docker pull akeb/mygoodip