Init
This commit is contained in:
commit
c048377bcc
32 changed files with 4748 additions and 0 deletions
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
container_name: shortener-db
|
||||
environment:
|
||||
POSTGRES_DB: shortener
|
||||
POSTGRES_USER: shortener
|
||||
POSTGRES_PASSWORD: shortener123
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- shortener-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U shortener"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
shortener-data:
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue