Browse Source

Add docker-compose support

dependabot/npm_and_yarn/axios-0.21.1
CareyWong 4 years ago
parent
commit
fca38031ae
  1. 5
      sub-web-services/.env
  2. 25
      sub-web-services/docker-compose.yaml

5
sub-web-services/.env

@ -0,0 +1,5 @@
SUBWEB_PORT=58080
MYURLS_PORT=8002
MYURLS_DOMAIN=example.com
MYURLS_TTL=180

25
sub-web-services/docker-compose.yaml

@ -0,0 +1,25 @@
version: "3"
services:
subweb:
build: ../.
container_name: subweb
restart: always
ports:
- "${SUBWEB_PORT}:80"
myurls:
image: "careywong/myurls:latest"
container_name: myurls
restart: always
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…
Cancel
Save