-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track Dockerfiles accross instances. (#2593)
* Track Dockerfiles accross instances. * Specify jessie as base
- Loading branch information
Showing
4 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: "2" | ||
services: | ||
db: | ||
ports: | ||
- "127.0.0.1:3307:3306" | ||
image: mariadb:10.2 | ||
restart: unless-stopped | ||
environment: | ||
- MYSQL_DATABASE=plots_$RAILS_ENV | ||
- MYSQL_USER=plots | ||
- MYSQL_PASSWORD=plots | ||
- MYSQL_RANDOM_ROOT_PASSWORD=true | ||
volumes: | ||
- ./config/my.cnf:/etc/mysql/my.cnf | ||
# for configuration | ||
- ../mysql:/var/lib/mysql | ||
# for persistence | ||
- ../dump:/docker-entrypoint-initdb.d | ||
# for importing a dump | ||
# if you want to re-import simply put away ../mysql/* | ||
# web: | ||
# build: . | ||
# command: /bin/bash -c "sleep 5 && bundle exec rails s -p 4000 -b '0.0.0.0'" | ||
# environment: | ||
# - RAILS_ENV=${RAILS_ENV} | ||
# volumes: | ||
# - .:/app | ||
# ports: | ||
# - "127.0.0.1:4001:4000" | ||
# links: | ||
# - db | ||
# restart: unless-stopped |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "2" | ||
services: | ||
db: | ||
image: mariadb:10.2 | ||
environment: | ||
- MYSQL_DATABASE=plots | ||
- MYSQL_USER=plots | ||
- MYSQL_PASSWORD=plots | ||
- MYSQL_RANDOM_ROOT_PASSWORD=true | ||
volumes: | ||
- ../mysql:/var/lib/mysql | ||
# for persistence | ||
- ../dump:/docker-entrypoint-initdb.d | ||
# for importing a dump | ||
# if you want to re-import simply put away ../mysql/* | ||
web: | ||
build: . | ||
command: /bin/bash -c "sleep 5 && passenger start -p 4000" | ||
environment: | ||
- RAILS_ENV=${RAILS_ENV} | ||
- SOLR_URL=${SOLR_URL} | ||
- SECRET_KEY_BASE=${SECRET_KEY_BASE} | ||
- DISABLE_SOLR_CHECK=1 | ||
volumes: | ||
- .:/app | ||
ports: | ||
- "127.0.0.1:4000:4000" | ||
links: | ||
- db | ||
# restart: unless-stopped |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "2" | ||
services: | ||
db: | ||
image: mariadb:10.2 | ||
environment: | ||
- MYSQL_DATABASE=plots | ||
- MYSQL_USER=plots | ||
- MYSQL_PASSWORD=plots | ||
- MYSQL_RANDOM_ROOT_PASSWORD=true | ||
volumes: | ||
- ./config/my.cnf:/etc/mysql/my.cnf | ||
# for configuration | ||
- ../mysql:/var/lib/mysql | ||
# for persistence | ||
- ../dump:/docker-entrypoint-initdb.d | ||
# for importing a dump | ||
# if you want to re-import simply put away ../mysql/* | ||
web: | ||
build: . | ||
command: /bin/bash -c "sleep 5 && passenger start -p 5001" | ||
environment: | ||
- RAILS_ENV=${RAILS_ENV} | ||
- SECRET_KEY_BASE=${SECRET_KEY_BASE} | ||
volumes: | ||
- .:/app | ||
ports: | ||
- "127.0.0.1:5001:5001" | ||
links: | ||
- db | ||
# restart: unless-stopped |