Answer the question
In order to leave comments, you need to log in
How can I spread postgresql on Docker to different servers?
Good afternoon! I have a server with Docker and DockerCompose installed, in Docker-Compose my config on the database looks like this
postgresql:
restart: always
image: sameersbn/postgresql:9.4-17
expose:
- "1111"
environment:
- DEBUG=false
- DB_USER=login
- DB_PASS=pass
- DB_NAME=mydb
volumes:
- ./data:/var/lib/ postgresql
Answer the question
In order to leave comments, you need to log in
how can you spread them across servers, and a single access to file storage?
In general, I think that you need to use Docker wisely, and not shove everything and everything into it.
For example, pushing SQL servers there is a bad idea - at least because with the default settings, the instance will change its IP address when the container is restarted, and it becomes fun to set up replication.
And I'm not even talking about the work of the scheduler in a container, where all normal people put a regular backup script and an ssh key, according to which the backup will be merged somewhere else
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question