S
S
Sergey Alekseev2019-01-17 21:24:01
PostgreSQL
Sergey Alekseev, 2019-01-17 21:24:01

Docker-compose, how to push data?

How to throw data into a container? Even after killing him?
There is docker-compose:

version: '3'

services:
 db:
   image: postgres
   environment:
     POSTGRES_PASSWORD: Provizorro666
     POSTGRES_USER: provizorro
   volumes:
     - ./data-pg:/var/lib/posgresql/data
 web:
   restart: always
   build: .
   volumes:
     - .:/code
   command: bash -c "python3.7 src/manage.py runserver 0.0.0.0:8000"
   ports:
     - "8000:8000"
   depends_on:
     - db

I start the container, then I upload the dump, but nothing is added to the folder
How can I fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2019-01-18
@serj2000

s/posgresql/pos tgresql /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question