Created
October 19, 2020 02:46
-
-
Save gaurangrshah/b60d58023fd3374499ede4f7d2fc4d72 to your computer and use it in GitHub Desktop.
#docker #strapi #mysql #mariadb
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: | |
api: | |
depends_on: | |
- db | |
image: strapi/strapi | |
restart: unless-stopped | |
container_name: strapi | |
environment: | |
APP_NAME: strapi-app | |
DATABASE_CLIENT: mysql | |
DATABASE_HOST: db | |
DATABASE_PORT: 3306 | |
DATABASE_NAME: db_strapi | |
DATABASE_USERNAME: my_user | |
DATABASE_PASSWORD: my_password | |
DATABASE_SSL: "false" | |
ports: | |
- 8080:1337 | |
volumes: | |
- C:/srv/strapi:/usr/src/api/strapi-app | |
db: | |
image: mariadb:latest | |
container_name: strapi_db | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: my_root_password | |
MYSQL_DATABASE: db_strapi | |
MYSQL_USER: my_user | |
MYSQL_PASSWORD: my_password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment