mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
docker compose yaml file
This commit is contained in:
parent
8a8bf95bbf
commit
423ba71e78
1 changed files with 30 additions and 0 deletions
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
services:
|
||||
|
||||
glimpse:
|
||||
# build: .
|
||||
image: glimpse-server:latest
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: postgres:latest
|
||||
restart: always
|
||||
user: postgres
|
||||
# ports:
|
||||
# - 5432:5432
|
||||
volumes:
|
||||
- psql-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: "postgresql"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 1s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
psql-data: {}
|
Loading…
Add table
Reference in a new issue