Update image

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2023-11-26 22:46:58 +01:00
parent ae6eff1f7c
commit 834b50a6ba
5 changed files with 30 additions and 5 deletions

View File

@ -20,11 +20,11 @@
DOCKER := docker DOCKER := docker
PROFILES := webserver database wordpress adminer PROFILES := webserver database wordpress adminer uptime-kuma
PROFILE_CMD := $(addprefix --profile ,$(PROFILES)) PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
COMPOSE_FILES := $(shell find docker-compose* | sed -e 's/^/--file /') COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /')
AUTHOR := bensuperpc AUTHOR := bensuperpc

View File

@ -18,7 +18,7 @@ www.bensuperpc.org {
respond /uploads/*.php 404 respond /uploads/*.php 404
log { log {
output stdout output file /data/logs/access.log
format console format console
} }
} }
@ -31,6 +31,10 @@ adminer.bensuperpc.org {
reverse_proxy adminer:8080 reverse_proxy adminer:8080
} }
uptimekuma.bensuperpc.org {
reverse_proxy uptime-kuma:3001
}
bensuperpc.com { bensuperpc.com {
redir https://www.bensuperpc.org{uri} permanent redir https://www.bensuperpc.org{uri} permanent
} }

View File

@ -6,6 +6,8 @@ services:
container_name: database container_name: database
profiles: profiles:
- database - database
depends_on:
- caddy
restart: on-failure restart: on-failure
volumes: volumes:
- database:/var/lib/mysql:rw - database:/var/lib/mysql:rw
@ -28,6 +30,7 @@ services:
restart: on-failure restart: on-failure
depends_on: depends_on:
- database - database
- caddy
env_file: env_file:
- env/wordpress.env - env/wordpress.env
volumes: volumes:
@ -69,6 +72,7 @@ services:
- env/adminer.env - env/adminer.env
depends_on: depends_on:
- database - database
- caddy
networks: networks:
- blog-network - blog-network
security_opt: security_opt:
@ -80,6 +84,21 @@ services:
# cap_add: # cap_add:
# - CHOWN # - CHOWN
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
profiles:
- uptime-kuma
depends_on:
- caddy
volumes:
- uptimekuma_data:/app/data
restart: always
networks:
- blog-network
security_opt:
- no-new-privileges:true
networks: networks:
blog-network: blog-network:
driver: bridge driver: bridge
@ -94,3 +113,5 @@ volumes:
name: caddy_data name: caddy_data
caddy_config: caddy_config:
name: caddy_config name: caddy_config
uptimekuma_data:
name: uptimekuma_data

View File

@ -1,3 +1,3 @@
memory_limit = 1024M memory_limit = 2048M
upload_max_filesize = 128M upload_max_filesize = 128M
post_max_size = 128M post_max_size = 128M