Ctrl K
ComunidadGuías…

docker-compose.yml

Rama master · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
include:
    - docker/docker-mysql.yml

services:
    ospos:
        image: jekkos/opensourcepos:master
        restart: always
        depends_on:
            - mysql
        ports:
            - "80:80"
        networks:
            - app_net
        command: ["sh", "-c", "php spark env:provision && exec apache2-foreground"]
        volumes:
            # .env holds the two runtime-generated secrets (encryption.key +
            # throttle.key), persisted as a single host file so the same keys
            # survive container recreation (a named volume is a directory and
            # forces .env to be a directory, breaking atomicWriteFile's rename).
            # create_host_path is explicitly false so a missing host file fails
            # startup instead of being auto-created as a directory (see docs/INSTALL.md).
            - type: bind
              source: ./.env
              target: /app/.env
              bind:
                  create_host_path: false
            - uploads:/app/public/uploads
            - logs:/app/writable/logs
        environment:
            - CI_ENVIRONMENT=production
            - ALLOWED_HOSTNAMES=localhost
            - FORCE_HTTPS=false
            - PHP_TIMEZONE=UTC
            - MYSQL_USERNAME=admin
            - MYSQL_PASSWORD=pointofsale
            - MYSQL_DB_NAME=ospos
            - MYSQL_HOST_NAME=mysql