Add files

This commit is contained in:
BBaoVanC 2021-07-31 15:18:58 -05:00
parent 7587642fed
commit 60cc21ca76
2 changed files with 38 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data/

36
docker-compose.yaml Normal file
View 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