feat: add docker-compose config and create initial postgres schema
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: learning_platform_db
|
||||
environment:
|
||||
POSTGRES_USER: dev_user
|
||||
POSTGRES_PASSWORD: "c21d8e935a40ed83"
|
||||
POSTGRES_DB: learning_platform
|
||||
ports:
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
container_name: learning_platform_pgadmin
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: ameerkhorsand@proton.me
|
||||
PGADMIN_DEFAULT_PASSWORD: "2f204a6a606e8475"
|
||||
ports:
|
||||
- "5050:80"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user