-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
just run `docker-compose up` to get fully working status page
- Loading branch information
Showing
1 changed file
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
version: '2' | ||
version: "3" | ||
|
||
services: | ||
postgres: | ||
image: postgres:9.5 | ||
volumes: | ||
- /var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=statuspage | ||
- POSTGRES_PASSWORD=statuspage | ||
restart: always | ||
statuspage: | ||
build: | ||
context: . | ||
ports: | ||
- '127.0.0.1:5432:5432' | ||
- 80:8080 | ||
links: | ||
- postgres:postgres | ||
environment: | ||
- POSTGRES_USER=statuspage | ||
- API_TOKEN= # This is the token clients should use to access the API (AUTHORIZATION header) | ||
- POSTGRES_ADDRESS=postgres:5432 # The address of the postgres instance | ||
- POSTGRES_USER=statuspage # The postgres username for authorization | ||
- POSTGRES_PASSWORD=statuspage # The postgres password for authorization | ||
- POSTGRES_DB=statuspage # The postgres db name | ||
- SITE_OWNER="DEMO" # The owner of the side, visible in page title | ||
- SITE_COLOR= # The background color applied on the header element | ||
- SITE_LOGO= # Custom logo, served from another site or local path inside the static folder | ||
depends_on: | ||
- postgres | ||
restart: on-failure |