Skip to content

Instantly share code, notes, and snippets.

@HarshSonawane
Last active September 5, 2022 18:32
Show Gist options
  • Save HarshSonawane/59e77ea98209c85016c171cb6192b0a7 to your computer and use it in GitHub Desktop.
Save HarshSonawane/59e77ea98209c85016c171cb6192b0a7 to your computer and use it in GitHub Desktop.
docker run -e POSTGRES_PASSWORD=password -p 5432:5432 -v ~/docker_vol:/var/lib/postgresql/data -d be17564e6a3a
docker run --name elasticsearch -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 -v ~/docker_es:/usr/share/elasticsearch/data -d docker.elastic.co/elasticsearch/elasticsearch:8.4.0
docker run --name redis -p 6379:6379 -d redis
docker run --name postgresql -e POSTGRES_USER=api_v2 -e POSTGRES_PASSWORD=password -p 5432:5432 -v /Volumes:/var/lib/postgresql/data -d postgres
docker run --name postgresql -e POSTGRES_USER=api_v2 -e POSTGRES_PASSWORD=password -p 5050:5432 -v /Volumes:/var/lib/postgresql/data -d postgres
# copy files to docker container -> replace docker id
# source destination
docker cp full_backup_latest.dump 098a394751e292ff314b7b871bcbe387bace96d6da470bc4a8e84c15c0e9ed5e:/full_backup_latest.dump
# docker container console
# docker id
docker exec -it 098a394751e292ff314b7b871bcbe387bace96d6da470bc4a8e84c15c0e9ed5e bash
@HarshSonawane
Copy link
Author

Updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment