docker:compose
This is an old revision of the document!
Table of Contents
Docker Compose
Befehle
docker-compose up -d docker-compose down
Dateien
docker-compose.yml docker-compose.override.yml
Beispiel Configs
Nginx + PHP
docker-compose.yml
version: '3.8' services: nginx-web: image: nginx volumes: - /var/www/html:/var/www/html:ro,z - ./data/etc/nginx/conf.d:/etc/nginx/conf.d:ro ports: - "127.0.0.1:8000:8000" environment: - VIRTUAL_HOST=example.com - VIRTUAL_PORT=8000 - VIRTUAL_PROTO=http - LETSENCRYPT_HOST=example.com deploy: restart_policy: condition: on-failure networks: nginx-proxy: aliases: - nginx-web nginx-php: image: php:7.4-fpm volumes: - /var/www/html/example.com:/var/www/html/example.com networks: nginx-proxy: external: true
docker/compose.1609698711.txt.gz · Last modified: 2024/02/17 19:03 (external edit)