chore: configure dev database

This commit is contained in:
Ivan R. 2024-06-15 15:49:09 +05:00
parent c8edc05b27
commit 94f33b062b
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
2 changed files with 19 additions and 3 deletions

View file

@ -2,10 +2,10 @@ import Config
# Configure your database
config :comfycamp, Comfycamp.Repo,
username: "postgres",
password: "postgres",
username: "phoenix",
password: "simple-password",
hostname: "localhost",
database: "comfycamp_dev",
database: "phoenix",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10

16
docker-compose.yml Normal file
View file

@ -0,0 +1,16 @@
version: '3.8'
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: phoenix
POSTGRES_USER: phoenix
POSTGRES_PASSWORD: simple-password
ports:
- 5432:5432
volumes:
- comfycamp-postgres-dev:/var/lib/postgresql/data
volumes:
comfycamp-postgres-dev: