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
version: '3' | |
services: | |
redis: | |
image: redis:alpine | |
ports: | |
- "6379" | |
networks: | |
- frontend | |
deploy: |
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
puts "Hello!" | |
puts "This is an application running on ruby #{RUBY_VERSION}" |
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
version: "3.4" | |
volumes: | |
postgres-data: | |
services: | |
postgres: | |
image: postgres:10.3-alpine | |
volumes: | |
- postgres-data:/var/lib/postgresql/data |
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
# You can point the Sentry Client to another (i.e. self-hosted) instance by setting this environment variable: | |
SENTRY_DSN: http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@sentry.icalialabs.com/[your_sentry_project_id] |
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
# Generate a rails model: | |
rails g model my_model title:string body:text |
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
# Other parts of the file omitted for clarity: | |
# I: Runtime Stage: ============================================================ | |
FROM ruby:2.6.1-alpine AS runtime | |
WORKDIR /usr/src | |
ENV HOME=/usr/src PATH=/usr/src/bin:$PATH | |
RUN apk add --no-cache ca-certificates less libpq nodejs npm openssl su-exec tzdata |
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
#!/usr/bin/env ruby | |
# This file is located at `bin/rails` | |
# Load the 'switch_user_and_exec' routine: | |
require_relative '../config/switch_user_and_exec' | |
begin | |
load File.expand_path('../spring', __FILE__) | |
rescue LoadError => e |
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
version: "2.4" | |
volumes: | |
postgres_data: | |
redis_data: | |
rabbit_data: | |
networks: | |
backend: |
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
version: "2" | |
volumes: | |
log-data: | |
driver: local | |
services: | |
elasticsearch: | |
image: elasticsearch:5.0 | |
ports: |
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
# Deploy using `docker stack deploy -f docker-flow-stack.yml docker_flow` | |
version: '3.7' | |
networks: | |
network: # Allows referring to 'docker_flow_network' on other stacks | |
services: | |
proxy: | |
image: dockerflow/docker-flow-proxy:19.03.02-16 | |
ports: |