mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 16:54:26 +01:00
Update image
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
ae6eff1f7c
commit
834b50a6ba
4
Makefile
4
Makefile
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user