2023-02-06 16:47:26 +08:00
|
|
|
version: '3.2'
|
|
|
|
|
services:
|
|
|
|
|
webservice:
|
|
|
|
|
container_name: caddy
|
|
|
|
|
image: caddy:latest
|
|
|
|
|
ports:
|
|
|
|
|
- "80:80"
|
|
|
|
|
- "443:443"
|
|
|
|
|
volumes:
|
2024-01-12 11:30:37 +08:00
|
|
|
- ./config/Caddyfile:/etc/caddy/Caddyfile
|
2024-01-11 16:39:32 +08:00
|
|
|
- ./config:/config
|
|
|
|
|
- ./data:/data
|
|
|
|
|
- ./websites:/www/websites
|
2023-02-06 16:47:26 +08:00
|
|
|
depends_on:
|
|
|
|
|
- php-cgi
|
|
|
|
|
restart: unless-stopped
|
2023-02-07 13:07:08 +08:00
|
|
|
networks:
|
|
|
|
|
- website
|
2023-02-06 16:47:26 +08:00
|
|
|
php-cgi:
|
|
|
|
|
container_name: php-fpm
|
|
|
|
|
build:
|
2024-01-12 11:30:37 +08:00
|
|
|
context: ../../php-fpm/8.2
|
2023-02-06 16:47:26 +08:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
volumes:
|
2024-01-11 16:39:32 +08:00
|
|
|
- ./websites:/www/websites
|
2023-02-06 16:47:26 +08:00
|
|
|
restart: unless-stopped
|
2023-02-07 01:49:59 +08:00
|
|
|
networks:
|
2023-02-07 13:07:08 +08:00
|
|
|
- website
|
2023-02-06 16:47:26 +08:00
|
|
|
networks:
|
|
|
|
|
website:
|