mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-30 14:26:14 +02:00
Dockerize RDAP
This commit is contained in:
parent
5a5ebaf3b5
commit
73f2ca17b0
2 changed files with 17 additions and 2 deletions
|
@ -4,12 +4,12 @@ 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
|
||||
|
||||
RUN composer install
|
||||
|
||||
VOLUME /var/log/namingo
|
||||
|
||||
CMD ["php","/opt/registry/das/start_das.php"]
|
15
rdap/Dockerfile
Normal file
15
rdap/Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue