chore: change docker compose file and .env.example
This commit is contained in:
+1
-1
@@ -10,4 +10,4 @@
|
|||||||
# should be updated accordingly.
|
# should be updated accordingly.
|
||||||
|
|
||||||
# Drizzle
|
# Drizzle
|
||||||
DATABASE_URL="postgresql://postgres:password@localhost:5432/novin"
|
DATABASE_URL="postgresql://app_user:strong_password@localhost:5432/app_db"
|
||||||
|
|||||||
+1
-14
@@ -5,31 +5,18 @@ services:
|
|||||||
image: hub.hamdocker.ir/timescale/timescaledb:2.15.1-pg16
|
image: hub.hamdocker.ir/timescale/timescaledb:2.15.1-pg16
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: app_db
|
POSTGRES_DB: app_db
|
||||||
POSTGRES_USER: app_user
|
POSTGRES_USER: app_user
|
||||||
POSTGRES_PASSWORD: strong_password
|
POSTGRES_PASSWORD: strong_password
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- "5469:5432"
|
- "5432:5432"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
command: >
|
command: >
|
||||||
postgres
|
postgres
|
||||||
-c shared_preload_libraries=timescaledb
|
-c shared_preload_libraries=timescaledb
|
||||||
|
|
||||||
pgadmin:
|
|
||||||
image: hub.hamdocker.ir/dpage/pgadmin4
|
|
||||||
environment:
|
|
||||||
PGADMIN_DEFAULT_EMAIL: admin@example.com
|
|
||||||
PGADMIN_DEFAULT_PASSWORD: admin
|
|
||||||
ports:
|
|
||||||
- "5050:80"
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user