Init
This commit is contained in:
26
docker-compose.yaml
Normal file
26
docker-compose.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: postgres
|
||||
image: postgres:15
|
||||
environment:
|
||||
- POSTGRES_DB=${DB_DATABASE}
|
||||
- POSTGRES_USER=${DB_USERNAME}
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
restart: always
|
||||
ports:
|
||||
- ${DB_PORT}:5432
|
||||
networks:
|
||||
- postgres
|
||||
volumes:
|
||||
- type: volume
|
||||
source: db
|
||||
target: /var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
||||
networks:
|
||||
postgres:
|
||||
name: postgres_network
|
||||
Reference in New Issue
Block a user