docker composes
This commit is contained in:
parent
71c4f5022c
commit
a90cdc08b8
9 changed files with 88 additions and 54 deletions
24
docker-compose.yaml
Normal file
24
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
services:
|
||||
db:
|
||||
image: postgres:16
|
||||
env_file: .env
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
POSTGRES_HOST: db
|
||||
POSTGRES_PORT: ${POSTGRES_PORT}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
env_file: .env
|
||||
ports:
|
||||
- "5000:5000"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Loading…
Add table
Add a link
Reference in a new issue