Initial commit
This commit is contained in:
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: agenda
|
||||
POSTGRES_USER: agenda
|
||||
POSTGRES_PASSWORD: agenda
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
adminer:
|
||||
image: adminer:4
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- ADMINER_DEFAULT_SERVER=postgres
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
agenda:
|
||||
build: .
|
||||
ports:
|
||||
- "4000:4000"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PORT=4000
|
||||
- DATABASE_URL=postgresql://agenda:agenda@postgres:5432/agenda
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user