chore: Move and update the Dockerfile for the database configuration
This commit is contained in:
+7
-3
@@ -1,8 +1,8 @@
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
context: ./
|
||||
dockerfile: ./docker/app.Dockerfile
|
||||
environment:
|
||||
- PORT=${WEB_PORT}
|
||||
ports:
|
||||
@@ -14,9 +14,13 @@ services:
|
||||
- ./tsconfig.json:/app/tsconfig.json
|
||||
- ./svelte.config.js:/app/svelte.config.js
|
||||
db:
|
||||
image: postgres:16
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: ./docker/postgres.Dockerfile
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${PG_PASS}
|
||||
- POSTGRES_USER=${PG_USER}
|
||||
- POSTGRES_DB=${PG_DB}
|
||||
ports:
|
||||
- ${PG_PORT}:5432
|
||||
volumes:
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM postgres:16
|
||||
|
||||
COPY ./docker/initdb.d/ /docker-entrypoint-initdb.d/
|
||||
Reference in New Issue
Block a user