The following Dockerfile is created:
FROM postgres:12
CMD [«postgres»]
And docker-compose.yml
version: '3'
services:
codes:
container_name: short_codes
build:
context: codes_store
image: andrey1981spb/short_codes
ports:
- 5432:5432
I up docker-compose successfully. But when I try to enter in container, I receive: "Container ... is not running"
Or I use a wrong command for initializing container.
CMD [«postgres»]looks weird. What do you get fromdocker-compose logs codes?