This commit is contained in:
Ben 2025-06-26 18:45:56 +03:00 committed by GitHub
commit b86a5730a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 116 additions and 0 deletions

25
automation/Dockerfile Normal file
View file

@ -0,0 +1,25 @@
FROM phpswoole/swoole:php8.3-alpine
RUN apk add gmp
RUN apk add gmp-dev
RUN docker-php-ext-install gmp
RUN docker-php-ext-install mysqli
RUN apk del gmp-dev
WORKDIR /opt/registry/automation
COPY . .
RUN composer install
RUN mv /opt/registry/automation/config.php.dist /opt/registry/automation/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/automation/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/automation/config.php
VOLUME /var/log/namingo
RUN echo -e "*\t*\t*\t*\t*\t/usr/bin/php /opt/registry/automation/cron.php 1>> /dev/null 2>&1" >> /var/spool/cron/crontabs/root
CMD ["crond"]

14
cp/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM php:8.3-alpine
WORKDIR /var/www/cp
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . .
RUN composer install
VOLUME /var/log/namingo
CMD ["php-fpm","-D"]

15
das/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM phpswoole/swoole:php8.3-alpine
WORKDIR /opt/registry/das
COPY . .
RUN composer install
RUN mv /opt/registry/das/config.php.dist /opt/registry/das/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/das/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/das/config.php
VOLUME /var/log/namingo
CMD ["php","/opt/registry/das/start_das.php"]

14
epp/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM phpswoole/swoole:php8.3-alpine
WORKDIR /opt/registry/epp
COPY . .
RUN composer install
RUN mv /opt/registry/epp/config.php.dist /opt/registry/epp/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/epp/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/epp/config.php
VOLUME /var/log/namingo
CMD ["php","/opt/registry/epp/start_epp.php"]

15
rdap/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM phpswoole/swoole:php8.3-alpine
WORKDIR /opt/registry/rdap
COPY . .
RUN composer install
RUN mv /opt/registry/rdap/config.php.dist /opt/registry/rdap/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/rdap/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/rdap/config.php
VOLUME /var/log/namingo
CMD ["php","/opt/registry/rdap/start_rdap.php"]

15
whois/port43/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM phpswoole/swoole:php8.3-alpine
WORKDIR /opt/registry/whois/port43
COPY . .
RUN composer install
RUN mv /opt/registry/whois/port43/config.php.dist /opt/registry/whois/port43/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/whois/port43/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/whois/port43/config.php
VOLUME /var/log/namingo
CMD ["php","/opt/registry/whois/port43/start_whois.php"]

18
whois/web/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM php:8.3-alpine
WORKDIR /var/www/whois
COPY . .
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN composer install
RUN mv /var/www/whois/config.php.dist /var/www/whois/config.php
RUN sed -i "s|'whois_url' => '.*'|'whois_url' => 'whois.${REGISTRY_DOMAIN}'|" /var/www/whois/config.php
RUN sed -i "s|'rdap_url' => '.*'|'rdap_url' => 'rdap.${REGISTRY_DOMAIN}'|" /var/www/whois/config.php
VOLUME /var/log/namingo
CMD ["php-fpm","-D"]