「🏗️」 wip(Refont): Change the strucuture to be a real projet and will certainly never do bash again
This commit is contained in:
@ -1,48 +0,0 @@
|
||||
version: "3"
|
||||
name: inception
|
||||
|
||||
volumes:
|
||||
wp-db:
|
||||
wp-site:
|
||||
|
||||
networks:
|
||||
inception:
|
||||
external: false
|
||||
|
||||
services:
|
||||
nginx:
|
||||
container_name: inception-nginx
|
||||
networks:
|
||||
- inception
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
depends_on:
|
||||
- wordpress-php
|
||||
- db
|
||||
volumes:
|
||||
- wp-site:/var/www/html
|
||||
ports:
|
||||
- "443:443"
|
||||
restart: unless-stopped
|
||||
|
||||
wordpress-php:
|
||||
container_name: inception-workp-php
|
||||
networks:
|
||||
- inception
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
volumes:
|
||||
- wp-site:/var/www/html
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
container_name: inception-db
|
||||
networks:
|
||||
- inception
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
volumes:
|
||||
- wp-db:/var/lib/mysql
|
||||
restart: unless-stopped
|
@ -1,27 +0,0 @@
|
||||
FROM alpine:3.21
|
||||
|
||||
LABEL version="0.1"
|
||||
LABEL maintainer="KeyZox"
|
||||
|
||||
RUN groupadd --gid 999 -r mysql \
|
||||
&& useradd -r -g mysql mysql --home-dir /var/lib/mysql --uid 999 \
|
||||
&& echo 'permit nopass root as mysql' >> /etc/doas.conf
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
|
||||
|
||||
RUN set -x \
|
||||
&& apk add --no-cache mariadb tzdata doas \
|
||||
|
||||
VOLUME /var/lib/mysql
|
||||
|
||||
COPY --chmod=0741 healthcheck.sh /healthcheck.sh
|
||||
COPY --chmod=0741 docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
WORKDIR /var/lib/mysql
|
||||
|
||||
USER mysql
|
||||
EXPOSE 3306
|
||||
CMD [ "mariadbd" ]
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec "$@"
|
@ -1,14 +0,0 @@
|
||||
# Ubuntu container compatibility
|
||||
|
||||
[mariadb]
|
||||
host-cache-size=0
|
||||
skip-name-resolve
|
||||
|
||||
expire_logs_days=10
|
||||
|
||||
|
||||
[client-server]
|
||||
socket=/run/mariadb/mariadb.sock
|
||||
|
||||
!includedir /etc/mysql/mariadb.conf.d
|
||||
!includedir /etc/mysql/conf.d
|
@ -1 +0,0 @@
|
||||
#!/bin/sh
|
@ -1,24 +0,0 @@
|
||||
FROM alpine:3.21
|
||||
|
||||
LABEL version="0.1"
|
||||
LABEL maintainer="KeyZox"
|
||||
|
||||
RUN set -x \
|
||||
&& addgroup -g 101 -S nginx\
|
||||
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \
|
||||
&& apk add --no-cache nginx tzdata \
|
||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
VOLUME /etc/nginx
|
||||
RUN mkdir -p /etc/nginx/sites-available
|
||||
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
RUN [ "chmod", "+x", "/docker-entrypoint.sh" ]
|
||||
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
WORKDIR /etc/nginx
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
EXPOSE 80
|
||||
CMD [ "nginx", "-g", "daemon off;" ]
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
exec "$@"
|
@ -1,26 +0,0 @@
|
||||
FROM alpine:3.21
|
||||
|
||||
LABEL version="0.1"
|
||||
LABEL maintainer="KeyZox"
|
||||
|
||||
RUN set -eux; \
|
||||
adduser -u 82 -D -S -G www-data www-data
|
||||
|
||||
RUN set -x \
|
||||
&& apk add --no-cache php84-fpm wget
|
||||
|
||||
VOLUME /var/www/html
|
||||
|
||||
WORKDIR /var/www/html
|
||||
RUN wget https://wordpress.org/wordpress-6.7.1.tar.gz
|
||||
&& tar -xzvf wordpress-6.7.1.zip
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
RUN [ "chmod", "+x", "/docker-entrypoint.sh" ]
|
||||
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
WORKDIR /var/www/html
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
EXPOSE 9000
|
||||
CMD [ "php-fpm84", "-F" ]
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user