set up mailhog
This commit is contained in:
parent
830af4ac9b
commit
eefd5d8254
5 changed files with 1876 additions and 1 deletions
|
@ -93,6 +93,13 @@ services:
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
mailhog:
|
||||||
|
restart: on-failure
|
||||||
|
build:
|
||||||
|
context: ./requirements/bonus/mailhog
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
networks:
|
||||||
|
- inception
|
||||||
site:
|
site:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
build:
|
build:
|
||||||
|
|
13
srcs/requirements/bonus/mailhog/Dockerfile
Normal file
13
srcs/requirements/bonus/mailhog/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM alpine:3.21.2
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.authors="alier@student.42mulhouse.fr"
|
||||||
|
|
||||||
|
RUN wget https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_arm -O /usr/local/bin/mailhog \
|
||||||
|
&& chmod +x /usr/local/bin/mailhog
|
||||||
|
|
||||||
|
ENV MH_UI_WEB_PATH=mailhog
|
||||||
|
|
||||||
|
EXPOSE 1025
|
||||||
|
EXPOSE 8025
|
||||||
|
|
||||||
|
ENTRYPOINT ["mailhog"]
|
|
@ -35,4 +35,8 @@ server {
|
||||||
location /site {
|
location /site {
|
||||||
proxy_pass http://site:3000;
|
proxy_pass http://site:3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /mailhog {
|
||||||
|
proxy_pass http://mailhog:8025;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ RUN ln -s /usr/bin/php84 /usr/bin/php && \
|
||||||
|
|
||||||
COPY tools/setup_wordpress.sh /setup_wordpress.sh
|
COPY tools/setup_wordpress.sh /setup_wordpress.sh
|
||||||
COPY conf/www.conf /etc/php84/php-fpm.d/www.conf
|
COPY conf/www.conf /etc/php84/php-fpm.d/www.conf
|
||||||
|
COPY conf/php.ini /etc/php84/php.ini
|
||||||
|
|
||||||
HEALTHCHECK --start-period=5s \
|
HEALTHCHECK --start-period=5s \
|
||||||
CMD cgi-fcgi -bind -connect 127.0.0.1:9000 || exit 1
|
CMD cgi-fcgi -bind -connect 127.0.0.1:9000 || exit 1
|
||||||
|
|
1850
srcs/requirements/wordpress/conf/php.ini
Normal file
1850
srcs/requirements/wordpress/conf/php.ini
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue