diff --git a/stack.production.yml b/stack.production.yml index 75dc464..5212e36 100644 --- a/stack.production.yml +++ b/stack.production.yml @@ -1,59 +1,46 @@ -services: - db: - image: postgres:15 - environment: - POSTGRES_USER: odoo - POSTGRES_PASSWORD: password # Replace with a strong password - POSTGRES_DB: odoo - volumes: - - /mnt/tank/persist/nixc.us/odoo/production/db:/var/lib/postgresql/data - networks: - - odoo-net - deploy: - replicas: 1 - placement: - constraints: - - node.hostname == odoo - labels: - us.nixc.autodeploy: "true" - traefik.enable: "false" - - odoo: - image: odoo:18 # Specify the desired Odoo version - # command: odoo -i base -d odoo - depends_on: - - db - environment: - HOST: db - USER: odoo - PASSWORD: password # Same as POSTGRES_PASSWORD - volumes: - - /mnt/tank/persist/nixc.us/odoo/production/odoo-data:/var/lib/odoo - - /mnt/tank/persist/nixc.us/odoo/production/addons:/mnt/extra-addons # For custom addons - - /mnt/tank/persist/nixc.us/odoo/production/config:/etc/odoo # For custom configurations - networks: - - odoo-net - - traefik - deploy: - replicas: 1 - placement: - constraints: - - node.hostname == odoo - labels: - traefik.enable: "true" - traefik.docker.network: traefik-public - traefik.http.routers.odoo.rule: Host(`odoo.nixc.us`) - traefik.http.routers.odoo.entrypoints: websecure - traefik.http.routers.odoo.tls.certresolver: letsencryptresolver - traefik.http.services.odoo.loadbalancer.server.port: 8069 - homepage.group: apps - homepage.name: odoo - homepage.href: https://odoo.nixc.us/ - homepage.description: Odoo ERP - us.nixc.autodeploy: "true" - networks: - odoo-net: - driver: overlay traefik: - external: true \ No newline at end of file + external: true + +services: + firefox: + image: lscr.io/linuxserver/firefox:latest +# image: jlesage/firefox + environment: +# DISPLAY_WIDTH: '1280' +# DISPLAY_HEIGHT: '720' +# KEEP_APP_RUNNING: '1' +# KASM_PORT: 80 + PUID: 1000 + GUID: 1000 + tmpfs: + - /tmp:size=2G + volumes: + - '/mnt/tank/persist/nixc.us/marketing-browser/production/config:/config:rw' + - '/etc/localtime:/etc/localtime:ro' + # - "istock:/config/Downloads" + - type: tmpfs + target: /dev/shm + deploy: + placement: + constraints: + - node.hostname == macmini14 + replicas: 1 + labels: + - "traefik.enable=true" + - "traefik.http.routers.istock_firefox.tls=true" + - "traefik.http.services.istock_firefox.loadbalancer.server.port=3000" + - "traefik.http.routers.istock_firefox.rule=Host(`marketing-browser.nixc.us`)" + - "traefik.http.routers.istock_firefox.entrypoints=websecure" + - "traefik.http.routers.istock_firefox.tls.certresolver=letsencryptresolver" + - "traefik.http.routers.istock_firefox.service=istock_firefox" + - "traefik.docker.network=traefik" + - 'traefik.http.routers.istock_firefox.middlewares=authelia_authelia@docker' + networks: + - traefik + dns: + - 1.1.1.1 + - 8.8.8.8 +# volumes: +# istock: +# external: true \ No newline at end of file