Last active
March 5, 2024 02:34
-
-
Save mattbell87/18978565300c02477844731638a29786 to your computer and use it in GitHub Desktop.
Cmfive minimal docker compose setup
This file contains 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
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