set up adminer

This commit is contained in:
2026-09-02 10:46:53 +02:00
parent c9f99b1b9b
commit 30177abb3b
4 changed files with 31 additions and 16 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
secrets/*.txt
bonus/secrets/*.txt
bonus/secrets/*.txt
-15
View File
@@ -1,15 +0,0 @@
*This project has been created as part of the 42 curriculum by Oleksandr.*
## Description
## Instructions
```bash
make
```
## Resources
+12
View File
@@ -88,6 +88,18 @@ services:
- "3000:3000"
restart: always
adminer:
build: ./requirements/adminer
image: adminer:inception
container_name: adminer
networks:
- inception
ports:
- "8081:8080"
depends_on:
- mariadb
restart: always
networks:
inception:
driver: bridge
@@ -0,0 +1,18 @@
FROM debian:bookworm-slim
ARG ADMINER_VERSION=6.0.1
RUN apt-get update && apt-get install -y --no-install-recommends \
php-cli \
php-mysql \
ca-certificates \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/www/adminer \
&& curl -fsSL -o /var/www/adminer/index.php \
"https://github.com/vrana/adminer/releases/download/v${ADMINER_VERSION}/adminer-${ADMINER_VERSION}-mysql-en.php"
EXPOSE 8080
CMD ["php", "-S", "0.0.0.0:8080", "-t", "/var/www/adminer"]