Created
October 9, 2020 18:08
-
-
Save orlandothoeny/8f10a4c5bc0723afaf13f4973541eb3f 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
# Configuration for local development | |
version: "3.7" | |
services: | |
# MySQL | |
# ----- | |
db: | |
image: bitnami/mysql:latest | |
ports: | |
- '127.0.0.1:3307:3306' | |
env_file: | |
- ./.env | |
volumes: | |
- db:/bitnami/mysql | |
# PHP 7.4 | |
# ------- | |
drupal: | |
image: php:7.4-fpm | |
env_file: | |
- ./.env | |
depends_on: | |
- db | |
links: | |
- db | |
volumes: | |
- appdata:/app/code | |
- public-files:/app/public_files | |
- private-files:/app/private_files | |
# Nginx | |
# ----- | |
nginx: | |
image: nginx:latest | |
env_file: | |
- ./.env | |
ports: | |
- 80:8080 | |
- 443:8443 | |
depends_on: | |
- drupal | |
links: | |
- drupal | |
volumes: | |
- appdata:/app/code | |
- public-files:/app/public_files | |
- private-files:/app/private_files | |
volumes: | |
appdata: | |
public-files: | |
private-files: | |
db: | |
x-mutagen: | |
sync: | |
defaults: | |
mode: "two-way-resolved" | |
symlink: | |
mode: "posix-raw" | |
configurationBeta: | |
permissions: | |
defaultOwner: "id:1111" | |
defaultGroup: "id:1111" | |
defaultFileMode: "0666" | |
defaultDirectoryMode: "0666" | |
ignore: | |
vcs: true | |
appdata: | |
alpha: "." | |
beta: "volume://appdata" | |
ignore: | |
paths: | |
- "docker" | |
- "frontend-build" | |
- "Jenkins" | |
public-files: | |
alpha: "../public_files" | |
beta: "volume://public-files" | |
private-files: | |
alpha: "../private_files" | |
beta: "volume://private-files" | |
db: | |
alpha: "docker/db/mysql" | |
beta: "volume://db" | |
configurationBeta: | |
permissions: | |
defaultOwner: "id:1001" | |
defaultGroup: "id:0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment