arrange entrypoints and commands for docker

This commit is contained in:
Arthur de Moulins
2020-02-27 21:54:54 +01:00
parent 056feff7b7
commit 4cfc712674
13 changed files with 62 additions and 41 deletions

View File

@@ -52,6 +52,16 @@ export INSTALL_ACCOUNT_PASSWORD=$3cr3t!
export PHRASEANET_APP_PORT=8082
```
### Using a .env.local
It may be easier to deal with a local file to manage our env variables.
You can add your `.env.local` at the root of this project and define a command alias in your `~/.bashrc`:
```bash
alias dc="env $(cat .env.local | grep -v '#' | tr '\n' ' ') docker-compose"
```
### Running the application
If you are not interested in the development of Phraseanet, you can ignore everything in `.env` after the `DEV Purpose` part.
@@ -103,15 +113,6 @@ For PhpStorm, you can follow this example:
> Configure the `Absolute path on the server` to `/var/alchemy/Phraseanet` at the project root path (i.e. `~/projects/Phraseanet`).
### How to change volumes location
Before moving all the files, or to use a different location, you have to remove all containers and volume definitions with the following command :
docker-compose down --volumes
Then move the files and set the `VOLUMES_DIR` to the new location.
# With Vagrant (deprecated)
## Development :