docker compose exemplified, .env integration
This commit is contained in:
1 parent
b1284f6fa9
commit
42ef989fb7
6 files changed
+22
-5
No files matched your search
@@ -115,6 +115,14 @@ CMD ["php", "-S", "0.0.0.0:8080", "-t", "public"]
|
||||
```
|
||||
|
||||
### Docker Compose
|
||||
Use the example template as the base for a local override:
|
||||
|
||||
```bash
|
||||
cp docker-compose.example.yml docker-compose.yml
|
||||
```
|
||||
|
||||
Then adapt the local values as needed:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
password-generator:
|
||||
@@ -132,6 +140,7 @@ services:
|
||||
CORS_METHODS: "GET,POST,OPTIONS"
|
||||
CORS_HEADERS: "Content-Type,Authorization"
|
||||
volumes:
|
||||
- ./.env:/var/www/html/.env:ro
|
||||
- ./logs:/var/www/html/logs
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user