<commit_before># You must include a `.env` file with the following content:
#   MYSQL_ROOT_PASSWORD=<PASSWORD>
#   MYSQL_PASSWORD=<PASSWORD>
#   MYSQL_HOST=chooseahost
#   PHP_DEBUG=1 or 0

version: '3.7'

networks:
    frontend:
        name: frontend
        external: false
    backend:
        name: backend
        external: false

# Base configuration for `smr` (production) and `smr-dev` (testing).
x-smr-common: &smr-common
    build:
        context: .
        args:
            - PHP_DEBUG=${PHP_DEBUG}
    container_name: ${SMR_HOST}
    networks:
        - frontend
        - backend
    labels:
        - "traefik.enable=true"
        - "traefik.docker.network=frontend"
        - "traefik.backend=${SMR_HOST}"
        - "traefik.frontend.passHostHeader=true"
        - "traefik.frontend.rule=${SMR_RULE:-PathPrefix:/}"
        - "traefik.port=80"
    depends_on:
        - mysql
        - smtp
    volumes:
        - ./vol_upload:/smr/htdocs/upload
        - ./config:/smr/config:ro

services:
    smr:
        << : *smr-common

    smr-dev:
        << : *smr-common
        volumes:
            - ./vol_upload:/smr/htdocs/upload
            - ./config:/smr/config:ro
            # Mount the source code instead of copying it.
            - ./admin:/smr/admin
            - ./engine:/smr/engine
            - ./htdocs:/smr/htdocs
            - ./lib:/smr/lib
            - ./templates:/smr/templates

    smtp:
        image: hemberger/postfix-relay
        networks:
            - backend
        environment:
            - OPENDKIM_DOMAINS=smrealms.de
            - OPENDKIM_SELECTOR=key1
        labels:
            - "traefik.enable=false"
        volumes:
            - ./opendkim:/etc/opendkim/keys/smrealms.de

    flyway:
        image: boxfuse/flyway:latest-alpine
        command: -url=jdbc:mysql://${MYSQL_HOST}/smr_live?useSSL=false -user=smr -password=${MYSQL_PASSWORD} migrate
        networks:
            - backend
        labels:
            - "traefik.enable=false"
        depends_on:
            - mysql
        volumes:
            - ./db/patches:/flyway/sql:ro

    mysql:
        image: mysql:5.7<commit_msg>docker-compose.yml: set FQDN for smtp hostname<commit_after># You must include a `.env` file with the following content:
#   MYSQL_ROOT_PASSWORD=<PASSWORD>
#   MYSQL_PASSWORD=<PASSWORD>
#   MYSQL_HOST=chooseahost
#   PHP_DEBUG=1 or 0

version: '3.7'

networks:
    frontend:
        name: frontend
        external: false
    backend:
        name: backend
        external: false

# Base configuration for `smr` (production) and `smr-dev` (testing).
x-smr-common: &smr-common
    build:
        context: .
        args:
            - PHP_DEBUG=${PHP_DEBUG}
    container_name: ${SMR_HOST}
    networks:
        - frontend
        - backend
    labels:
        - "traefik.enable=true"
        - "traefik.docker.network=frontend"
        - "traefik.backend=${SMR_HOST}"
        - "traefik.frontend.passHostHeader=true"
        - "traefik.frontend.rule=${SMR_RULE:-PathPrefix:/}"
        - "traefik.port=80"
    depends_on:
        - mysql
        - smtp
    volumes:
        - ./vol_upload:/smr/htdocs/upload
        - ./config:/smr/config:ro

services:
    smr:
        << : *smr-common

    smr-dev:
        << : *smr-common
        volumes:
            - ./vol_upload:/smr/htdocs/upload
            - ./config:/smr/config:ro
            # Mount the source code instead of copying it.
            - ./admin:/smr/admin
            - ./engine:/smr/engine
            - ./htdocs:/smr/htdocs
            - ./lib:/smr/lib
            - ./templates:/smr/templates

    smtp:
        image: hemberger/postfix-relay
        networks:
            - backend
        environment:
            - POSTFIX_myhostname=hostname.local
            - OPENDKIM_DOMAINS=smrealms.de
            - OPENDKIM_SELECTOR=key1
        labels:
            - "traefik.enable=false"
        volumes:
            - ./opendkim:/etc/opendkim/keys/smrealms.de

    flyway:
        image: boxfuse/flyway:latest-alpine
        command: -url=jdbc:mysql://${MYSQL_HOST}/smr_live?useSSL=false -user=smr -password=${MYSQL_PASSWORD} migrate
        networks:
            - backend
        labels:
            - "traefik.enable=false"
        depends_on:
            - mysql
        volumes:
            - ./db/patches:/flyway/sql:ro

    mysql:
        image: mysql:5.7
{'fraction_non_alphanumeric': 0.12125371768474033, 'fraction_numerical': 0.004118050789293068, 'mean_word_length': 1.6369119420989144, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3579075', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1461, 'n_words': 233}