2022-03-23 12:28:05 +08:00
|
|
|
version: '2.1'
|
2022-02-02 00:08:15 +08:00
|
|
|
services:
|
|
|
|
mariadb:
|
|
|
|
image: 'mariadb:10.5.8-focal'
|
2022-03-23 12:28:05 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "mysqladmin", "ping", "--silent","--password=$$MYSQL_ROOT_PASSWORD"]
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2022-02-02 00:08:15 +08:00
|
|
|
volumes:
|
|
|
|
- 'mariadb_data:/var/lib/mysql'
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=theVeryp@ssw0rd
|
|
|
|
- MYSQL_DATABASE=pushdeer
|
|
|
|
ports:
|
|
|
|
- '3306:3306'
|
|
|
|
redis:
|
|
|
|
image: 'bitnami/redis:6.0.16'
|
2022-03-23 12:28:05 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli","ping"]
|
2022-02-02 00:08:15 +08:00
|
|
|
environment:
|
|
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
|
|
app:
|
|
|
|
#image: 'webdevops/php-apache:8.0-alpine'
|
|
|
|
build: './docker/web/'
|
|
|
|
ports:
|
|
|
|
- '8800:80'
|
|
|
|
volumes:
|
|
|
|
- './:/app'
|
|
|
|
depends_on:
|
2022-03-23 12:28:05 +08:00
|
|
|
mariadb:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2022-02-02 00:08:15 +08:00
|
|
|
environment:
|
|
|
|
- DB_HOST=mariadb
|
|
|
|
- DB_PORT=3306
|
|
|
|
- DB_USERNAME=root
|
|
|
|
- DB_DATABASE=pushdeer
|
|
|
|
- DB_PASSWORD=theVeryp@ssw0rd
|
|
|
|
- GO_PUSH_IOS_TOPIC=com.pushdeer.self.ios
|
|
|
|
- GO_PUSH_IOS_CLIP_TOPIC=com.pushdeer.self.ios.Clip
|
2022-02-02 21:34:59 +08:00
|
|
|
- APP_DEBUG=false
|
2022-02-16 17:47:54 +08:00
|
|
|
- MQTT_API_KEY=9LKo3
|
|
|
|
- MQTT_ON=false
|
|
|
|
# mqtt:
|
|
|
|
# image: 'ccr.ccs.tencentyun.com/ftqq/pushdeeresp'
|
|
|
|
# ports:
|
|
|
|
# - '1883:1883'
|
|
|
|
# environment:
|
|
|
|
# - API_KEY=9LKo3
|
|
|
|
# - MQTT_PORT=1883
|
|
|
|
# - MQTT_USER=easy
|
|
|
|
# - MQTT_PASSWORD=y0urp@ss
|
|
|
|
# - MQTT_BASE_TOPIC=default
|
2022-02-02 00:08:15 +08:00
|
|
|
volumes:
|
|
|
|
mariadb_data:
|