Add files
This commit is contained in:
parent
7587642fed
commit
60cc21ca76
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.env
|
||||||
|
data/
|
36
docker-compose.yaml
Normal file
36
docker-compose.yaml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:latest
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=statping
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
- POSTGRES_DB=statping
|
||||||
|
volumes:
|
||||||
|
- ./data/postgres:/var/lib/postgresql/data/
|
||||||
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -U statping -d statping
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
statping:
|
||||||
|
restart: always
|
||||||
|
image: statping/statping:latest
|
||||||
|
environment:
|
||||||
|
- DB_CONN=postgres
|
||||||
|
- DB_HOST=postgres
|
||||||
|
- DB_USER=statping
|
||||||
|
- DB_PASS=$POSTGRES_PASSWORD
|
||||||
|
- DB_DATABASE=statping
|
||||||
|
- NAME=bobastatus
|
||||||
|
- ADMIN_USER=bbaovanc
|
||||||
|
- ADMIN_PASSWORD
|
||||||
|
volumes:
|
||||||
|
- ./data/statping:/app
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:82:8080
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
Reference in New Issue
Block a user