<commit_before>version: '2'

services:
  nginx:
    image: azuracast/azuracast_nginx:latest
    ports:
      - '80:80'
      - '443:443'
    depends_on:
      - web
      - stations
    volumes:
      - .:/var/azuracast/www
      - nginx_letsencrypt_certs:/etc/nginx/ssl
      - nginx_letsencrypt_www:/var/www/letsencrypt
      - nginx_conf:/etc/nginx/conf.d
    restart: always

  # docker-compose run --rm letsencrypt \
  #   certonly --webroot \
  #   --fullchain-path /etc/letsencrypt/ssl.crt \
  #   --key-path /etc/letsencrypt/ssl.key \
  #   -w /var/www/letsencrypt
  letsencrypt:
    image: certbot/certbot
    command: /bin/true
    volumes:
      - nginx_letsencrypt_certs:/etc/letsencrypt
      - nginx_letsencrypt_www:/var/www/letsencrypt
      - nginx_conf:/etc/nginx/conf.d

  mariadb:
    image: mariadb:latest
    volumes:
      - db_data:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
      - MYSQL_USER=azuracast
      - MYSQL_PASSWORD=<PASSWORD>
      - MYSQL_DATABASE=azuracast
    restart: always

  influxdb:
    image: influxdb:alpine
    volumes:
      - influx_data:/var/lib/influxdb
    restart: always

  redis:
    image: redis:alpine
    restart: always

  web:
    image: azuracast/azuracast_web:latest
    depends_on:
      - mariadb
      - influxdb
      - stations
      - redis
    volumes:
      - .:/var/azuracast/www
      - tmp_data:/var/azuracast/www_tmp
      - station_data:/var/azuracast/stations
    restart: always

  cron:
    container_name: azuracast_cron
    image: azuracast/azuracast_web:latest
    volumes_from:
      - web
    depends_on:
      - mariadb
      - influxdb
      - stations
      - redis
    command: 'cron && tail -f /var/log/cron.log'
    restart: always

  cli:
    image: azuracast/azuracast_web:latest
    volumes_from:
      - web
    depends_on:
      - mariadb
      - influxdb
      - stations
      - redis
    user: 'azuracast'
    working_dir: '/var/azuracast/www'
    command: 'bash'

  stations:
    container_name: azuracast_stations
    image: azuracast/azuracast_stations:latest
    ports:
     - '8000:8000'
     - '8005:8005'
     - '8006:8006'
     - '8010:8010'
     - '8015:8015'
     - '8016:8016'
     - '8020:8020'
     - '8025:8025'
     - '8026:8026'
     - '8030:8030'
     - '8035:8035'
     - '8036:8036'
     - '8040:8040'
     - '8045:8045'
     - '8046:8046'
     - '8050:8050'
     - '8055:8055'
     - '8056:8056'
     - '8060:8060'
     - '8065:8065'
     - '8066:8066'
     - '8070:8070'
     - '8075:8075'
     - '8076:8076'
     - '8080:8080'
     - '8085:8085'
     - '8086:8086'
     - '8090:8090'
     - '8095:8095'
     - '8096:8096'
    volumes:
     - station_data:/var/azuracast/stations
    restart: always

volumes:
  nginx_letsencrypt_certs: {}
  nginx_letsencrypt_www: {}
  nginx_conf: {}
  db_data: {}
  influx_data: {}
  station_data: {}
  tmp_data: {}<commit_msg>Don't make nginx conf a volume<commit_after>version: '2'

services:
  nginx:
    image: azuracast/azuracast_nginx:latest
    ports:
      - '80:80'
      - '443:443'
    depends_on:
      - web
      - stations
    volumes:
      - .:/var/azuracast/www
      - nginx_letsencrypt_certs:/etc/nginx/ssl
      - nginx_letsencrypt_www:/var/www/letsencrypt
    restart: always

  # docker-compose run --rm letsencrypt \
  #   certonly --webroot \
  #   --fullchain-path /etc/letsencrypt/ssl.crt \
  #   --key-path /etc/letsencrypt/ssl.key \
  #   -w /var/www/letsencrypt
  letsencrypt:
    image: certbot/certbot
    command: /bin/true
    volumes:
      - nginx_letsencrypt_certs:/etc/letsencrypt
      - nginx_letsencrypt_www:/var/www/letsencrypt

  mariadb:
    image: mariadb:latest
    volumes:
      - db_data:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
      - MYSQL_USER=azuracast
      - MYSQL_PASSWORD=<PASSWORD>
      - MYSQL_DATABASE=azuracast
    restart: always

  influxdb:
    image: influxdb:alpine
    volumes:
      - influx_data:/var/lib/influxdb
    restart: always

  redis:
    image: redis:alpine
    restart: always

  web:
    image: azuracast/azuracast_web:latest
    depends_on:
      - mariadb
      - influxdb
      - stations
      - redis
    volumes:
      - .:/var/azuracast/www
      - tmp_data:/var/azuracast/www_tmp
      - station_data:/var/azuracast/stations
    restart: always

  cron:
    container_name: azuracast_cron
    image: azuracast/azuracast_web:latest
    volumes_from:
      - web
    depends_on:
      - mariadb
      - influxdb
      - stations
      - redis
    command: 'cron && tail -f /var/log/cron.log'
    restart: always

  cli:
    image: azuracast/azuracast_web:latest
    volumes_from:
      - web
    depends_on:
      - mariadb
      - influxdb
      - stations
      - redis
    user: 'azuracast'
    working_dir: '/var/azuracast/www'
    command: 'bash'

  stations:
    container_name: azuracast_stations
    image: azuracast/azuracast_stations:latest
    ports:
     - '8000:8000'
     - '8005:8005'
     - '8006:8006'
     - '8010:8010'
     - '8015:8015'
     - '8016:8016'
     - '8020:8020'
     - '8025:8025'
     - '8026:8026'
     - '8030:8030'
     - '8035:8035'
     - '8036:8036'
     - '8040:8040'
     - '8045:8045'
     - '8046:8046'
     - '8050:8050'
     - '8055:8055'
     - '8056:8056'
     - '8060:8060'
     - '8065:8065'
     - '8066:8066'
     - '8070:8070'
     - '8075:8075'
     - '8076:8076'
     - '8080:8080'
     - '8085:8085'
     - '8086:8086'
     - '8090:8090'
     - '8095:8095'
     - '8096:8096'
    volumes:
     - station_data:/var/azuracast/stations
    restart: always

volumes:
  nginx_letsencrypt_certs: {}
  nginx_letsencrypt_www: {}
  db_data: {}
  influx_data: {}
  station_data: {}
  tmp_data: {}
{'fraction_non_alphanumeric': 0.12434691745036573, 'fraction_numerical': 0.08742598397770812, 'mean_word_length': 2.019453207150368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, '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': '6372702', 'n_tokens_mistral': 2657, 'n_tokens_neox': 2377, 'n_words': 324}