set up adminer
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
*This project has been created as part of the 42 curriculum by Oleksandr.*
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
|
|
||||||
## Instructions
|
|
||||||
|
|
||||||
```bash
|
|
||||||
make
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Resources
|
|
||||||
|
|
||||||
@@ -88,6 +88,18 @@ services:
|
|||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
adminer:
|
||||||
|
build: ./requirements/adminer
|
||||||
|
image: adminer:inception
|
||||||
|
container_name: adminer
|
||||||
|
networks:
|
||||||
|
- inception
|
||||||
|
ports:
|
||||||
|
- "8081:8080"
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
restart: always
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
inception:
|
inception:
|
||||||
driver: bridge
|
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"]
|
||||||
Reference in New Issue
Block a user