version: '3.5'
services:
h5ai:
image: awesometic/h5ai
container_name: h5ai
restart: unless-stopped
depends_on:
- rclone
logging:
options:
max-size: "10m"
max-file: "3"
env_file:
- .env
- .env.rclone
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
ports:
- 5573:80
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /etc/localtime:/etc/localtime:ro
- ./config/h5ai:/config
- /mnt/rclone/mnt:/h5ai:shared
Variables:
- PUID=1000
- PGID=1000
- TZ=Pacific/Auckland
- HTPASSWD=false
- HTPASSWD_USER=guest
- HTPASSWD_PW=
Make config directories...
useradd: cannot open /etc/passwd
groupmod: group 'abc' does not exist
usermod: user 'abc' does not exist
Add dummy user for better handle permission...
Check configuration files for Nginx...
User setup files found: /config/nginx/h5ai.conf
Remove image's default setup files and copy the previous version...
Check configuration files for h5ai...
User setup files found: /config/h5ai/_h5ai
Check if h5ai version updated...
Remove image's default setup files and copy the existing version...
Set permission for caching...
Fix ownership for Nginx and php-fpm...
Set ownership to the configuration files...
chown: unknown user/group abc:abc
Start supervisord...
2021-10-13 02:31:02,555 INFO Set uid to user 0 succeeded
2021-10-13 02:31:02,557 INFO supervisord started with pid 35
2021-10-13 02:31:03,561 INFO spawned: 'nginx' with pid 36
2021-10-13 02:31:03,565 INFO spawned: 'php-fpm' with pid 37
2021/10/13 02:31:03 [emerg] 36#36: getpwnam("abc") failed in /etc/nginx/nginx.conf:2
nginx: [emerg] getpwnam("abc") failed in /etc/nginx/nginx.conf:2
2021-10-13 02:31:03,620 INFO exited: nginx (exit status 1; not expected)
[13-Oct-2021 02:31:03] ERROR: [pool www] cannot get uid for user 'abc'
[13-Oct-2021 02:31:03] ERROR: FPM initialization failed
2021-10-13 02:31:03,634 INFO gave up: nginx entered FATAL state, too many start retries too quickly
2021-10-13 02:31:03,635 INFO exited: php-fpm (exit status 78; not expected)
2021-10-13 02:31:04,637 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly