Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
#6 Improving docker composition and makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
duozersk committed Jun 8, 2018
1 parent 28256a0 commit dbad024
Show file tree
Hide file tree
Showing 15 changed files with 350 additions and 256 deletions.
43 changes: 40 additions & 3 deletions .env.default
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@
# docker4drupal variables.
PROJECT_NAME=falcon
PROJECT_BASE_URL=flc.local

DB_NAME=drupal
DB_USER=drupal
DB_PASSWORD=drupal
DB_ROOT_PASSWORD=password
DB_DRIVER=mysql

DB_HOST_GIFTS=be_gifts_mariadb
DB_HOST_DONATIONS=be_donations_mariadb

MARIADB_TAG=10.1-3.1.3
PHP_TAG=7.1-dev-4.4.2
# MacOS.
# PHP_TAG=7.1-dev-macos-4.4.2
NGINX_TAG=8-1.13-4.1.0

# Docker-compose environment variables - see https://docs.docker.com/compose/reference/envvars/
COMPOSE_FILE=./docker/docker-compose.yml:./docker/docker-compose.override.yml
COMPOSE_PROJECT_NAME=falcon

# Base URL for local development.
# All microservices are subdomains to this one.
PROJECT_BASE_URL=flc.local
MODULES_GIFTS=falcon_demo_content default_content better_normalizers hal
MODULES_DONATIONS=falcon_demo_content default_content better_normalizers hal

# Platform.sh related variables.
PLATFORM_PROJECT_ID=kkgqvmy5atnt2
PLATFORM_ENVIRONMENT=master
PLATFORM_APPLICATION_GIFTS=backend-gifts
PLATFORM_APPLICATION_DONATIONS=backend-donations
PLATFORM_RELATIONSHIP_GIFTS=database
PLATFORM_RELATIONSHIP_DONATIONS=database

# Local environment variables.
ENV=local-dev
BACKUP_DIR=backup
DB_DUMP_NAME_GIFTS=dump-gifts
DB_DUMP_NAME_DONATIONS=dump-donations
# On Linux machines you can put DB into memory - /dev/shm
# Possible values: ./mysql | /dev/shm
MYSQL_DATA_DIR=./mysql
MYSQL_DATA_DIR_GIFTS=gifts
MYSQL_DATA_DIR_DONATIONS=donations
18 changes: 12 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# PHPStorm folder.
# PHPStorm directory.
.idea

# Mac artifacts.
# MacOS Desktop Services Store files.
.DS_Store

# Locally generated env file.
.env
# Docker mysql storage.
/docker/mysql/*
!/docker/mysql/.gitkeep

# Locally generated docker file with overrides.
docker/docker-compose.override.yml
# DB dumps/backups.
/backup/*
!/backup/.gitkeep

# Environment overrides.
/.env
/docker/docker-compose.override.yml
Loading

0 comments on commit dbad024

Please sign in to comment.