mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
moved healthchecks from Dockerfiles to docker-compose.yml
This commit is contained in:
parent
2681ab3828
commit
ac20be8744
@ -41,6 +41,12 @@ services:
|
|||||||
dockerfile: ./docker/brickfix.Dockerfile
|
dockerfile: ./docker/brickfix.Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
||||||
|
interval: 2m
|
||||||
|
timeout: 3s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
|
||||||
account-manager:
|
account-manager:
|
||||||
container_name: DarkFlameAccountManager
|
container_name: DarkFlameAccountManager
|
||||||
@ -57,6 +63,12 @@ services:
|
|||||||
- ACCOUNT_SECRET=${ACCOUNT_MANAGER_SECRET:?err}
|
- ACCOUNT_SECRET=${ACCOUNT_MANAGER_SECRET:?err}
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:5000"]
|
||||||
|
interval: 2m
|
||||||
|
timeout: 3s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
darkflame:
|
darkflame:
|
||||||
|
@ -10,6 +10,4 @@ ADD docker/resources_example.py resources.py
|
|||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
HEALTHCHECK --interval=2m --timeout=3s \
|
|
||||||
CMD curl -f http://localhost:5000 || exit 1
|
|
||||||
CMD python3 app.py
|
CMD python3 app.py
|
||||||
|
@ -2,6 +2,4 @@
|
|||||||
FROM python:3.9.9-slim
|
FROM python:3.9.9-slim
|
||||||
WORKDIR /empty_dir
|
WORKDIR /empty_dir
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
HEALTHCHECK --interval=2m --timeout=3s \
|
|
||||||
CMD curl -f http://localhost:80 || exit 1
|
|
||||||
CMD python -m http.server 80
|
CMD python -m http.server 80
|
||||||
|
Loading…
Reference in New Issue
Block a user