init docker setup
This commit is contained in:
+12315
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
postgresql:
|
||||
image: docker.io/library/postgres:latest
|
||||
container_name: postgresql
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER:?POSTGRES_USER not set}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD not set}
|
||||
networks:
|
||||
- postgresql
|
||||
volumes:
|
||||
- postgresql:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
postgresql:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postgresql:
|
||||
external: true
|
||||
Reference in New Issue
Block a user