50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
|
|
---
|
||
|
|
version: '3.7'
|
||
|
|
|
||
|
|
services:
|
||
|
|
tus-server:
|
||
|
|
build: ./server
|
||
|
|
container_name: tus-php-server
|
||
|
|
ports:
|
||
|
|
- 8081:80
|
||
|
|
volumes:
|
||
|
|
- ../:/var/www:delegated
|
||
|
|
- ../example:/var/www/html:delegated
|
||
|
|
- ./.data/server/logs:/var/log/nginx:delegated
|
||
|
|
- ./.data/server/xdebug:/var/log/xdebug:delegated
|
||
|
|
entrypoint: entrypoint.sh
|
||
|
|
labels:
|
||
|
|
tag: tus-php-server
|
||
|
|
group: tus-php
|
||
|
|
|
||
|
|
tus-client:
|
||
|
|
build: ./client
|
||
|
|
container_name: tus-php-client
|
||
|
|
ports:
|
||
|
|
- 8080:80
|
||
|
|
volumes:
|
||
|
|
- ../:/var/www:delegated
|
||
|
|
- ../example:/var/www/html:delegated
|
||
|
|
- ./.data/client/logs:/var/log/nginx:delegated
|
||
|
|
- ./.data/server/xdebug:/var/log/xdebug:delegated
|
||
|
|
labels:
|
||
|
|
tag: tus-php-client
|
||
|
|
group: tus-php
|
||
|
|
environment:
|
||
|
|
- SERVER_URL=http://0.0.0.0:8081
|
||
|
|
|
||
|
|
redis:
|
||
|
|
image: redis
|
||
|
|
container_name: tus-php-redis
|
||
|
|
restart: always
|
||
|
|
ports:
|
||
|
|
- 6379:6379
|
||
|
|
labels:
|
||
|
|
tag: tus-php-redis
|
||
|
|
group: tus-php
|
||
|
|
|
||
|
|
networks:
|
||
|
|
default:
|
||
|
|
external:
|
||
|
|
name: tus-php-network
|