| version: '3.9' |
|
|
| services: |
| db: |
| image: mysql:latest |
| command: --default-authentication-plugin=mysql_native_password |
| environment: |
| |
| MYSQL_ROOT_PASSWORD: 123456 |
| TZ: 'Asia/Shanghai' |
| MYSQL_DATABASE: 'wewe-rss' |
| |
| |
| volumes: |
| - db_data:/var/lib/mysql |
| healthcheck: |
| test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost'] |
| timeout: 45s |
| interval: 10s |
| retries: 10 |
|
|
| app: |
| image: cooderl/wewe-rss:latest |
| ports: |
| - 4000:4000 |
| depends_on: |
| db: |
| condition: service_healthy |
| environment: |
| |
| - DATABASE_URL=mysql://root:123456@db:3306/wewe-rss?schema=public&connect_timeout=30&pool_timeout=30&socket_timeout=30 |
| |
| - AUTH_CODE=123567 |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| networks: |
| wewe-rss: |
|
|
| volumes: |
| db_data: |
|
|