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
PROFILES := webserver database wordpress adminer
PROFILES := webserver database wordpress adminer uptime-kuma
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

View File

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

View File

@ -6,6 +6,8 @@ services:
container_name: database
profiles:
- database
depends_on:
- caddy
restart: on-failure
volumes:
- database:/var/lib/mysql:rw
@ -28,6 +30,7 @@ services:
restart: on-failure
depends_on:
- database
- caddy
env_file:
- env/wordpress.env
volumes:
@ -69,6 +72,7 @@ services:
- env/adminer.env
depends_on:
- database
- caddy
networks:
- blog-network
security_opt:
@ -80,6 +84,21 @@ services:
# cap_add:
# - 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:
blog-network:
driver: bridge
@ -94,3 +113,5 @@ volumes:
name: caddy_data
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
post_max_size = 128M