update: add sub web

This commit is contained in:
🐟 2023-08-17 23:11:14 +08:00
parent 76fcc84741
commit 880f3e9b17
3 changed files with 35 additions and 9 deletions

15
docker-compose-test.yaml Normal file
View File

@ -0,0 +1,15 @@
version: '2.12'
services:
ngx:
# profiles: ["dev"]
container_name: ngx-t
image: nginx:latest
restart: always
# ports:
# - 80:80
# - 443:443
network_mode: host
volumes:
- /etc/localtime:/etc/localtime:ro
# - ${DIR}/ngx/etc:/etc/nginx
# - ${DIR}/ngx/log:/var/log/nginx

View File

@ -29,6 +29,7 @@ services:
# - vlss
ngx:
profiles: ["dev"]
container_name: ngx
image: nginx:latest
restart: always
@ -43,21 +44,28 @@ services:
volumes:
- ${DIR}/ngx/etc:/etc/nginx
- ${DIR}/ngx/log:/var/log/nginx
subconv:
container_name: subv
restart: always
image: tindy2013/subconverter:latest
ports:
- 25500:25500
environment:
TZ:
TERM:
image: subconverter:dev
build:
context: .
dockerfile: sub.Dockerfile
networks:
- vlss
subweb:
container_name: subw
restart: always
image: careywong/subweb:latest
networks:
- vlss
depends_on:
- ngx
- subconv
networks:
vlss:
driver: bridge
driver: bridge
external: true
name: local

3
sub.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM tindy2013/subconverter:latest
COPY ./sub/subconverter /usr/bin/subconverter