statping/dev/docker-compose.lite.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

2020-02-28 07:56:17 +00:00
version: '2.3'
services:
statping_dev:
container_name: statping_dev
2020-02-29 15:00:08 +00:00
image: hunterlong/statping:dev
2020-02-28 07:56:17 +00:00
restart: on-failure
volumes:
2020-02-29 15:00:08 +00:00
- ./cmd:/go/src/github.com/hunterlong/statping/cmd/
- ./core:/go/src/github.com/hunterlong/statping/core/
- ./database:/go/src/github.com/hunterlong/statping/database/
- ./dev:/go/src/github.com/hunterlong/statping/dev/
- ./frontend:/go/src/github.com/hunterlong/statping/frontend/
- ./handlers:/go/src/github.com/hunterlong/statping/handlers/
- ./notifiers:/go/src/github.com/hunterlong/statping/notifiers/
- ./source:/go/src/github.com/hunterlong/statping/source/
- ./types:/go/src/github.com/hunterlong/statping/types/
- ./utils:/go/src/github.com/hunterlong/statping/utils/
2020-02-28 07:56:17 +00:00
environment:
DB_CONN: sqlite
API_KEY: exampleapikey
API_SECRET: exampleapisecret
NAME: Statping
DOMAIN: http://localhost:8585
DESCRIPTION: This is a dev environment with auto reloading!
ADMIN_USER: admin
ADMIN_PASS: admin
PORT: 8585
ports:
- 8888:8888
- 8585:8585
networks:
- statping
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8585/health || false"]
timeout: 2s
interval: 5s
retries: 10
networks:
statping: