Skip to content

Instantly share code, notes, and snippets.

@Zackio
Last active January 7, 2021 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zackio/81ae181ff66d462988f494363aada503 to your computer and use it in GitHub Desktop.
Save Zackio/81ae181ff66d462988f494363aada503 to your computer and use it in GitHub Desktop.
Docker Help
Example https://bitbucket.org/zackster/docker/src
MAke use of docker dashboard, gives lots of info
## Connecting to database
Use the information in the docker dashboard for the db imagem it lists the port and the user and pass
# Entry point
Copies new cypoint sript
docker-compose build
To run init script
docker-compose up
To run script as corect user, addd this to Dockerfile file. But it messed up things down the line.
USER 33:33
Waht seemed to work better was
sudo -u www-data
In the script before each command
Rebuild
docker-compose up --build -d
## docker-compose
current dir
- .:workspace:cached
## WPCLI
Don't run this as a seperate image, it makes things complex because each instance has a different user. If you did want to try it again, the key is to set the user in the Dockerfile but I don't know what user to set as
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment