Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
fixes on fig.yml.dist, added a local fig.yml.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Mainardi committed Dec 29, 2014
1 parent b9aa2c8 commit c0ffb18
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 5 deletions.
75 changes: 75 additions & 0 deletions fig.yml.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
data:
build: src/containers/data
hostname: data
volumes:
- data:/data
nginx:
build: src/containers/nginx
hostname: nginx
environment:
- LOCAL_UID=501
- LOCAL_GID=20
links:
- php
volumes_from:
- data
ports:
- "8000:80"
privileged: true
php:
build: src/containers/php
hostname: php
environment:
- LOCAL_UID=501
- LOCAL_GID=20
links:
- mysql
- mailcatcher
- solr
volumes_from:
- data
privileged: true
cli:
build: src/containers/cli
hostname: cli
environment:
- LOCAL_UID=501
- LOCAL_GID=20
- COMPOSER_CACHE_DIR=/composer-cache
links:
- mysql
- mailcatcher
- solr
volumes_from:
- data
volumes:
- data/var/apps/drush:/home/www-data/.drush
- data/var/cache/composer:/composer-cache
# Add ssh keys to container in order to download private repos.
- data/ssh-keys:/home/www-data/.ssh
privileged: true
mysql:
build: src/containers/mysql
hostname: mysql
privileged: true
ports:
- "3307:3306"
volumes_from:
- data
mailcatcher:
build: src/containers/mailcatcher
hostname: mailcatcher
volumes_from:
- data
ports:
- "1081:1080"
solr:
build: src/containers/solr
hostname: solr
ports:
- "8984:8983"
volumes:
- data/etc/solr-conf/elite:/opt/solr/example/multicore/elite
- data/etc/solr-conf/solr.xml:/opt/solr/example/multicore/solr.xml
command: -Xmx1024m -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -Dsolr.solr.home=multicore -jar start.jar

10 changes: 5 additions & 5 deletions fig.yml.dist
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
data:
build: src/containers/data
image: twinbit/data
hostname: data
volumes:
- data:/data
nginx:
build: src/containers/nginx
image: twinbit/nginx
hostname: nginx
environment:
- LOCAL_UID=##LOCAL_UID##
Expand All @@ -17,7 +17,7 @@ nginx:
- "8000:80"
privileged: true
php:
build: src/containers/php
image: twinbit/php
hostname: php
environment:
- LOCAL_UID=##LOCAL_UID##
Expand Down Expand Up @@ -49,15 +49,15 @@ cli:
- data/ssh-keys:/home/www-data/.ssh
privileged: true
mysql:
build: src/containers/mysql
image: twinbit/mysql
hostname: mysql
privileged: true
ports:
- "3307:3306"
volumes_from:
- data
mailcatcher:
build: src/containers/mailcatcher
image: twinbit/mailcatcher
hostname: mailcatcher
volumes_from:
- data
Expand Down

0 comments on commit c0ffb18

Please sign in to comment.