mirror of
https://github.com/andwati/url-shortener.git
synced 2026-11-14 23:05:13 +00:00
added htmx, picocss postgres
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
|
||||
# docker-compose.yml
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_PORT=5432
|
||||
- DB_USER=postgres
|
||||
- DB_PASSWORD=postgres
|
||||
- DB_NAME=urlshortener
|
||||
restart: always
|
||||
|
||||
db:
|
||||
image: postgres:17
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_DB=urlshortener
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user