forked from woxcab/vkrss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (27 loc) · 960 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: "3.8"
services:
php:
image: php:7.4-apache
container_name: php
cpus: 0.5
mem_limit: 200m
volumes:
- ./src:/var/www/html
networks:
- caddy
labels:
caddy: ${DOMAIN}:${VKRSS_PORT} ${DOMAIN}:${VKRSS_PORT2}
caddy.import: "logging ${DOMAIN}"
caddy.handle_path: "/${FEED_PATH}/*"
[email protected]: "vkrss_access_token=${VKRSS_ACCESS_TOKEN}"
caddy.handle_path.handle_0: "@tokenCheck"
caddy.handle_path.handle_0.0_rewrite: "* /{path.2}"
caddy.handle_path.handle_0.0_uri: "replace /api/vkrss/ /"
caddy.handle_path.handle_0.1_uri: "replace vkrss_access_token=${VKRSS_ACCESS_TOKEN} access_token=${VK_ACCESS_TOKEN}"
caddy.handle_path.handle_0.1_reverse_proxy: "{{upstreams 80}}"
caddy.handle_path.rewrite_1: "/${FEED_PATH}/* /"
caddy.reverse_proxy: "{{upstreams 80}}"
restart: unless-stopped
networks:
caddy:
external: true