You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
656 B
29 lines
656 B
2 months ago
|
version: "3.7"
|
||
|
services:
|
||
|
teh-base:
|
||
|
build:
|
||
|
context: ../base
|
||
|
dockerfile: dockerfile
|
||
|
image: "teh-base"
|
||
|
container_name: ${PG_CONTAINER_NAME}
|
||
|
environment:
|
||
|
POSTGRES_DB: ${POSTGRES_DB}
|
||
|
POSTGRES_USER: ${POSTGRES_USER}
|
||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||
|
PGDATA: ${PGDATA}
|
||
|
volumes:
|
||
|
- teh-base:${PGDATA}
|
||
|
- teh-prebase:/var/lib/postgresql/data
|
||
|
ports:
|
||
|
- "5432:5432"
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
teh-base:
|
||
|
external: true
|
||
|
teh-prebase:
|
||
|
external: true
|
||
|
networks:
|
||
|
default:
|
||
|
name: teh-net
|
||
|
external: true
|
||
|
driver: bridge
|