Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question