Skip to content

Instantly share code, notes, and snippets.

@steinkel
Created October 6, 2020 08:04
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 steinkel/cc25ca16aa297993c444954e5937e1c9 to your computer and use it in GitHub Desktop.
Save steinkel/cc25ca16aa297993c444954e5937e1c9 to your computer and use it in GitHub Desktop.
cakefest2020 docker-compose.yaml file
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