Advertisement
misteralexander

websitetest.yml

Dec 19th, 2024 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.84 KB | Source Code | 0 0
  1. ---
  2. networks:
  3.   website:
  4.     external: true
  5.  
  6. services:
  7.   nginx:
  8.     image: docker.io/library/nginx:latest
  9.     pull_policy: always
  10.     container_name: nginx
  11.     hostname: nginx
  12.     environment:
  13.       PUID: 1000
  14.       PGID: 1000
  15.       TZ: 'America/Phoenix'
  16.     volumes:
  17.      - /opt/apps/websitetest/data/nginx.conf:/etc/nginx/nginx.conf:ro
  18.       - /opt/apps/websitetest/data/html:/var/www/html:ro
  19.     depends_on:
  20.      - php-fpm
  21.     networks:
  22.      - website
  23.     ports:
  24.      - "3005:80"
  25.     restart: unless-stopped
  26.  
  27.   php-fpm:
  28.     image: docker.io/bitnami/php-fpm:latest
  29.     pull_policy: always
  30.     container_name: php-fpm
  31.     hostname: php-fpm
  32.     environment:
  33.       PHP_MEMORY_LIMIT: 128M
  34.     volumes:
  35.      - /opt/apps/websitetest/data/html:/var/www/html
  36.     restart: unless-stopped
  37.     networks:
  38.      - website
  39. ...
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement