Created
November 19, 2019 12:54
-
-
Save hufon/b601c4f3bbe0bc5f8ba27db85ec5435b to your computer and use it in GitHub Desktop.
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
version: "3" | |
services: | |
# | |
# Database | |
# | |
mysql: | |
image: mysql:5.7 | |
environment: | |
MYSQL_DATABASE: "directus" | |
MYSQL_USER: "directus" | |
MYSQL_PASSWORD: "directus" | |
MYSQL_ROOT_PASSWORD: "directus" | |
ports: | |
- 3306:3306 | |
# | |
# API instance. | |
# This should serve our api requests and won't work before database | |
# is properly installed by running the installer. | |
# | |
api: | |
image: hufon/directus-api:v8.0.0-rc.1-apache | |
ports: | |
- "8080:80" | |
environment: | |
# App | |
DIRECTUS_APP_ENV: "production" | |
DIRECTUS_APP_TIMEZONE: "America/Sao_Paulo" | |
# These are now required, make sure to always set | |
# to something unique while in production | |
DIRECTUS_AUTH_PUBLICKEY: "some random secret" | |
DIRECTUS_AUTH_SECRETKEY: "another random secret" | |
# Database | |
DIRECTUS_DATABASE_HOST: "mysql" | |
DIRECTUS_DATABASE_PORT: "3306" | |
DIRECTUS_DATABASE_NAME: "directus" | |
DIRECTUS_DATABASE_USERNAME: "directus" | |
DIRECTUS_DATABASE_PASSWORD: "directus" | |
links: | |
- mysql:mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment