Last active
January 7, 2021 11:56
-
-
Save Zackio/81ae181ff66d462988f494363aada503 to your computer and use it in GitHub Desktop.
Docker Help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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