Preparing database stuff
This commit is contained in:
parent
2a76bdb73f
commit
9c96234a1f
4 changed files with 178 additions and 1 deletions
43
code_thingies/database/docker-compose.yaml
Normal file
43
code_thingies/database/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
version: '3.5'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
container_name: dbt_postgres
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_USER: dbt_postgres_user
|
||||
POSTGRES_PASSWORD: dbt_postgres_password
|
||||
PGDATA: /data/postgres
|
||||
volumes:
|
||||
- postgres:/data/postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
networks:
|
||||
- postgres
|
||||
restart: unless-stopped
|
||||
|
||||
pgadmin:
|
||||
container_name: pgadmin_container
|
||||
image: dpage/pgadmin4
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: pgadmin_user@email.com
|
||||
PGADMIN_DEFAULT_PASSWORD: pgadmin_password
|
||||
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
||||
MASTER_PASSWORD: amasterpasswordshouldbelong
|
||||
volumes:
|
||||
- pgadmin:/var/lib/pgadmin
|
||||
|
||||
ports:
|
||||
- "12345:80"
|
||||
networks:
|
||||
- postgres
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
networks:
|
||||
postgres:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
pgadmin:
|
||||
Loading…
Add table
Add a link
Reference in a new issue