mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 17:51:43 +10:00
Docker changes
Added: Healthchecks Changed Postgres to Alpine + pinned Pinned Traefik Version Made Env Vars easier to see + change/reference for those using their own env file.
This commit is contained in:
@ -2,7 +2,7 @@ version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
image: postgres:14.2-alpine
|
||||
container_name: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
@ -10,6 +10,13 @@ services:
|
||||
volumes:
|
||||
- ./scripts/database/initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres" ]
|
||||
interval: 30s
|
||||
timeout: 30s
|
||||
start_period: 15s
|
||||
retries: 3
|
||||
restart: always
|
||||
|
||||
traefik:
|
||||
image: traefik
|
||||
|
||||
Reference in New Issue
Block a user