<commit_before>version: '3.2'

services:

### OMS CORE        #######################################
### Workspace Utilities Container ###########################

    omscore:
        build:
          context: ./$PATH_OMS_CORE/omscore/
          dockerfile: ./Dockerfile.dev
        image: aegee/omscore:dev
        volumes:
            - type: bind
              source: ./$PATH_OMS_CORE/../
              target: /var/www
            - type: volume
              source: shared
              target: /var/shared



### PHP-FPM Container #######################################

    php-fpm:
        build:
          context: ./$PATH_OMS_CORE/php-fpm/
          dockerfile: ./Dockerfile.dev
        image: aegee/php-fpm:dev
        volumes:
            - type: bind
              source: ./$PATH_OMS_CORE/../
              target: /var/www
        expose:
            - "9000"

### Nginx Server Container ##################################

    omscore-nginx:
        build:
          context: ./$PATH_OMS_CORE/omscore-nginx/
          dockerfile: ./Dockerfile.dev
        image: aegee/omscore-nginx:dev
        volumes:
            - type: bind
              source: ./$PATH_OMS_CORE/../
              target: /var/www
        links:
            - php-fpm
        expose:
            - "80"
        labels:
            - "traefik.backend=omscore"
            - "traefik.port=80"
            - "traefik.frontend.rule=HostRegexp:{domain:[a-z0-9.]+}"
            - "traefik.frontend.priority=10"
            - "traefik.enable=true"
            - "registry.categories=(users, 10);(antennae, 10)"
            - "registry.backend=/api"
            - "registry.description=The core module with both backend and frontend"
            - "registry.status=/service/health/ping"

### PostgreSQL Container ####################################

    postgres:
        image: postgres:latest
        volumes:
            - postgres:/var/lib/postgresql/data
        expose:
            - "5432"
        environment:
            POSTGRES_DB: homestead
            POSTGRES_USER: homestead
            POSTGRES_PASSWORD: <PASSWORD>

### pgAdmin Container #######################################

    pgadmin:
        image: fenglc/pgadmin4
        ports:
            - "5050:5050"
        links:
            - postgres
### Volumes Setup ###########################################

volumes:
    postgres:
        driver: "local"<commit_msg>Improve docker-compose with restart policies<commit_after>version: '3.2'

services:

### OMS CORE        #######################################
### Workspace Utilities Container ###########################

    omscore:
        build:
          context: ./$PATH_OMS_CORE/omscore/
          dockerfile: ./Dockerfile.dev
        image: aegee/omscore:dev
        restart: always
        volumes:
            - type: bind
              source: ./$PATH_OMS_CORE/../
              target: /var/www
            - type: volume
              source: shared
              target: /var/shared



### PHP-FPM Container #######################################

    php-fpm:
        build:
          context: ./$PATH_OMS_CORE/php-fpm/
          dockerfile: ./Dockerfile.dev
        image: aegee/php-fpm:dev
        restart: always
        volumes:
            - type: bind
              source: ./$PATH_OMS_CORE/../
              target: /var/www
        expose:
            - "9000"

### Nginx Server Container ##################################

    omscore-nginx:
        build:
          context: ./$PATH_OMS_CORE/omscore-nginx/
          dockerfile: ./Dockerfile.dev
        image: aegee/omscore-nginx:dev
        restart: always
        volumes:
            - type: bind
              source: ./$PATH_OMS_CORE/../
              target: /var/www
        links:
            - php-fpm
        expose:
            - "80"
        labels:
            - "traefik.backend=omscore"
            - "traefik.port=80"
            - "traefik.frontend.rule=HostRegexp:{domain:[a-z0-9.]+}"
            - "traefik.frontend.priority=10"
            - "traefik.enable=true"
            - "registry.categories=(users, 10);(antennae, 10)"
            - "registry.backend=/api"
            - "registry.description=The core module with both backend and frontend"
            - "registry.status=/service/health/ping"

### PostgreSQL Container ####################################

    postgres:
        image: postgres:latest
        restart: always
        volumes:
            - postgres:/var/lib/postgresql/data
        expose:
            - "5432"
        environment:
            POSTGRES_DB: homestead
            POSTGRES_USER: homestead
            POSTGRES_PASSWORD: <PASSWORD>


### Volumes Setup ###########################################

volumes:
    postgres:
        driver: "local"
{'fraction_non_alphanumeric': 0.19929048414023373, 'fraction_numerical': 0.011060100166944907, 'mean_word_length': 1.6480662983425414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4978639', 'n_tokens_mistral': 1423, 'n_tokens_neox': 1362, 'n_words': 242}