Created
October 6, 2020 08:04
-
-
Save steinkel/cc25ca16aa297993c444954e5937e1c9 to your computer and use it in GitHub Desktop.
cakefest2020 docker-compose.yaml file
This file contains hidden or 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
version: '3' | |
services: | |
postgres: | |
image: postgres | |
container_name: postgres | |
environment: | |
- POSTGRES_USER=my_app | |
- POSTGRES_PASSWORD=secret | |
- POSTGRES_DB=my_app | |
ports: | |
- '5442:5432' | |
php: | |
image: webdevops/php-apache:7.4 | |
container_name: cakephp | |
working_dir: /application/webroot | |
volumes: | |
- ./:/application | |
environment: | |
- WEB_DOCUMENT_ROOT=/application/webroot | |
- DATABASE_URL=postgres://my_app:secret@postgres:5432/my_app | |
ports: | |
- "8099:80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment