Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nutricia
version: "3"
services:
www:
build: .docker/php
command: gulp browser-sync --proxy http://backend
working_dir: /app
ports:
- 3000:3000
links:
- www:backend
volumes:
- .:/app:cached
- npm:/home/npm
links:
- backend
environment:
PORT: 3000
DOCKER: 1
YARN_CACHE_FOLDER: "/home/npm/.yarn_cache"
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app/node_modules/.bin"
NODE_HOME: "/home/npm"
BACKEND_URL: "http://backend"
APP_NAME: bebiklub
backend:
build: .docker/php
command: app/console server:run 0.0.0.0:80
working_dir: /app
volumes:
- .:/app:cached
- composer:/home/composer
- ./.docker/php/php.ini:/usr/local/etc/php/conf.d/99-project.ini
links:
- mysql
- redis
- elasticsearch
environment:
COMPOSER_HOME: "/home/composer"
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app/vendor/bin:/app/bin"
ALGOLIA_APPLICATION_ID:
ALGOLIA_APPLICATION_KEY:
ALGOLIA_ENABLED:
ALGOLIA_INDEX_PREFIX:
ALGOLIA_PUBLIC_API_KEY:
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9200
IPRESSO_MODE: dev
MAILER_HOST: docker.for.mac.localhost
MAILER_PORT: 1025
MYSQL_HOST: mysql
MYSQL_PASSWORD: atdevrocks
MYSQL_PORT: 3306
MYSQL_USERNAME: root
MYSQL_DATABASE_NAME: bebiklub
REDIS_HOST: redis
DOCKER: 1
ELASTICSEARCH_PREFIX: bebiklub_
APP_NAME: bebiklub
mysql:
image: mysql:5.7
restart: unless-stopped
ports:
- "3307:3306"
volumes:
- mysql:/var/lib/mysql
- ./mysql:/etc/mysql/conf.d
environment:
- MYSQL_ROOT_PASSWORD=atdevrocks
redis:
image: redis
restart: unless-stopped
command: --appendonly yes
volumes:
- redis:/data
elasticsearch:
image: elasticsearch:1
restart: unless-stopped
volumes:
- elasticsearch:/usr/share/elasticsearch/data
volumes:
mysql: ~
redis: ~
elasticsearch: ~
composer: ~
npm: ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.