Skip to content

Instantly share code, notes, and snippets.

@mattbell87
Last active March 5, 2024 02:34
Show Gist options
  • Save mattbell87/18978565300c02477844731638a29786 to your computer and use it in GitHub Desktop.
Save mattbell87/18978565300c02477844731638a29786 to your computer and use it in GitHub Desktop.
Cmfive minimal docker compose setup
services:
cmfive:
image: ghcr.io/2pisoftware/cmfive:develop
environment:
- TZ=Australia/Sydney
- DB_HOST=mysql
- DB_DATABASE=cmfive
- DB_USERNAME=cmfive
- DB_PASSWORD=cmfive
- ENVIRONMENT=development
ports:
- 8998:80
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:8
environment:
- TZ=Australia/Sydney
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=cmfive
- MYSQL_PASSWORD=cmfive
- MYSQL_DATABASE=cmfive
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 10s
timeout: 5m
retries: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment