update: add sub web
This commit is contained in:
parent
76fcc84741
commit
880f3e9b17
15
docker-compose-test.yaml
Normal file
15
docker-compose-test.yaml
Normal 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
|
@ -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
3
sub.Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM tindy2013/subconverter:latest
|
||||
|
||||
COPY ./sub/subconverter /usr/bin/subconverter
|
Loading…
Reference in New Issue
Block a user