<commit_before># docker-compose.yml for Skygear
#
# If you need to override parts of this file, please create
# `docker-compose.override.yml` in the same directory of this file and
# specify overrided attributes.
# See also: https://docs.docker.com/compose/extends/
# (requires docker-compose 0.5 or above)

# The `*_data` are data volume containers used to keep persistent data.
# It is save to delete and recreate non-data-volume containers.

db_data:
  image: mdillon/postgis:9.4
  command: /bin/true

# The database container
db:
  image: mdillon/postgis:9.4
  volumes_from:
  - db_data
  ports:
  - "5432:5432"

redis_data:
  image: redis:3.0
  command: /bin/true

redis:
  image: redis:3.0
  volumes_from:
  - redis_data

app_data:
  image: oursky/skygear:latest
  command: /bin/true

# The Skygear container
app:
  image: oursky/skygear:latest
  ports:
  - "3000:3000" # Skygear API Endpoint (HTTP)
  - "5555:5555" # Skygear Plugin Endpoint (ZMQ)
  volumes_from:
  # Uncomment the following line to override the default configuration file.
  #- ./development.ini:/go/src/app/development.ini
  - app_data
  links:
  - db
  - redis
  command: skygear development.ini
  environment:
    # `db` in the following string should match the name of the database
    # container above.
    DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable
    REDISTEST: redis://redis:6379
    DB_IMPL_NAME: pq
    API_KEY: changeme
    PGHOST: db
    PGUSER: postgres
    # GOMAXPROCS - The maximum number of Go threads for execution.
    # When unspecified, the default is the number of CPU available, which
    # is the recommended setting.
    #GOMAXPROCS: 1<commit_msg>Update docker-compose.yml to version 2<commit_after># docker-compose.yml for Skygear
#
# This docker-compose.yml requries Docker Compose 1.6. Do not modify this
# file for local development--create `docker-compose.override.yml` to override
# settings here.

version: '2'

services:
  db:
    image: mdillon/postgis:9.4
    volumes:
    - db_data:/var/lib/postgresql/data
    ports:
    - "5432:5432"
  
  redis:
    image: redis:3.0
    volumes:
    - redis_data:/data
  
  app:
    image: oursky/skygear:latest
    ports:
    - "3000:3000" # Skygear API Endpoint (HTTP)
    - "5555:5555" # Skygear Plugin Endpoint (ZMQ)
    volumes:
    - app_data:/go/src/app/data
    # Uncomment the following line to override the default configuration file
    #- ./development.ini:/go/src/app/development.ini
    links:
    - db
    - redis
    command: skygear development.ini
    environment:
      # `db` in the following string should match the name of the database
      # container above.
      DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable
      REDISTEST: redis://redis:6379
      DB_IMPL_NAME: pq
      API_KEY: changeme
      APP_NAME: _
      PGHOST: db
      PGUSER: postgres
      # GOMAXPROCS - The maximum number of Go threads for execution.
      # When unspecified, the default is the number of CPU available, which
      # is the recommended setting.
      #GOMAXPROCS: 1

volumes:
  redis_data:
    driver: local
  db_data:
    driver: local
  app_data:
    driver: local
{'fraction_non_alphanumeric': 0.09283233343858541, 'fraction_numerical': 0.023997473950110516, 'mean_word_length': 3.051150895140665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7614933', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1072, 'n_words': 312}