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 # - vlss
ngx: ngx:
profiles: ["dev"]
container_name: ngx container_name: ngx
image: nginx:latest image: nginx:latest
restart: always restart: always
@ -47,17 +48,24 @@ services:
subconv: subconv:
container_name: subv container_name: subv
restart: always restart: always
image: tindy2013/subconverter:latest image: subconverter:dev
ports: build:
- 25500:25500 context: .
environment: dockerfile: sub.Dockerfile
TZ: networks:
TERM: - vlss
subweb:
container_name: subw
restart: always
image: careywong/subweb:latest
networks: networks:
- vlss - vlss
depends_on: depends_on:
- ngx - subconv
networks: networks:
vlss: 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