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.
34 lines
867 B
34 lines
867 B
version: "3.7" |
|
services: |
|
postgres-service: |
|
build: |
|
context: ../postgres-service |
|
dockerfile: dockerfile |
|
image: "postgres-service" |
|
container_name: ${PG_CONTAINER_NAME} |
|
environment: |
|
POSTGRES_DB: ${POSTGRES_DB} |
|
POSTGRES_USER: ${POSTGRES_USER} |
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} |
|
PGDATA: ${PGDATA} |
|
volumes: |
|
- db_tech-services:${PGDATA} |
|
- predb_tech-services:/var/lib/postgresql/data |
|
ports: |
|
- "5432:5432" |
|
restart: unless-stopped |
|
volumes: |
|
db_tech-services: |
|
external: true |
|
predb_tech-services: |
|
external: true |
|
networks: |
|
default: |
|
name: tech_network |
|
external: true |
|
driver: bridge |
|
|
|
# docker volume create db_tech-services |
|
# docker volume create predb_tech-services |
|
# docker network create tech_network |
|
# docker-compose up |