mirror of https://github.com/dnomd343/sub-web
CareyWong
5 years ago
4 changed files with 55 additions and 1 deletions
@ -0,0 +1,7 @@ |
|||||
|
SUBWEB_PORT=58080 |
||||
|
|
||||
|
SUBCONVERTER_PORT=25500 |
||||
|
|
||||
|
MYURLS_PORT=8002 |
||||
|
MYURLS_DOMAIN=example.com |
||||
|
MYURLS_TTL=90 |
@ -0,0 +1,34 @@ |
|||||
|
version: "3" |
||||
|
services: |
||||
|
subweb: |
||||
|
build: . |
||||
|
container_name: subweb |
||||
|
restart: always |
||||
|
ports: |
||||
|
- "${SUBWEB_PORT}:80" |
||||
|
|
||||
|
subconverter: |
||||
|
image: "tindy2013/subconverter:latest" |
||||
|
container_name: subconverter |
||||
|
restart: always |
||||
|
ports: |
||||
|
- "${SUBCONVERTER_PORT}:25500" |
||||
|
|
||||
|
myurls: |
||||
|
image: "careywong/myurls:latest" |
||||
|
container_name: myurls |
||||
|
restart: always |
||||
|
env_file: .env |
||||
|
ports: |
||||
|
- "${MYURLS_PORT}:8002" |
||||
|
depends_on: |
||||
|
- myurls-redis |
||||
|
entrypoint: ["/app/myurls", "-domain", "${MYURLS_DOMAIN}", "-conn", myurls-redis:6379, "-ttl", "${MYURLS_TTL}"] |
||||
|
|
||||
|
myurls-redis: |
||||
|
image: "redis:5" |
||||
|
container_name: myurls-redis |
||||
|
restart: always |
||||
|
expose: |
||||
|
- "6379" |
||||
|
|
Loading…
Reference in new issue