diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..65a2d96 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,58 @@ +--- +version: "3.8" + +services: + eo-services: + deploy: + labels: + shepherd.enable: "true" + traefik.enable: "true" + traefik.http.middlewares.eo-services.stripprefix.prefixes: /api + traefik.http.routers.eo-services-https.entrypoints: https + traefik.http.routers.eo-services-https.middlewares: eo-services + traefik.http.routers.eo-services-https.rule: + Host(`eo-services.mortons.site`) + && ( Path(`/api`) || PathPrefix(`/api/`) ) + traefik.http.routers.eo-services-https.tls: "" + traefik.http.routers.eo-services-https.tls.certresolver: le + traefik.http.services.eo-services.loadbalancer.server.port: "3000" + environment: + TZ: America/Chicago + image: registry.mortons.site/eo-services:latest + networks: + traefik_public: null + + eo-services-client: + deploy: + labels: + shepherd.enable: "true" + traefik.enable: "true" + traefik.http.routers.eo-services-client-https.entrypoints: https + traefik.http.routers.eo-services-client-https.rule: Host(`eo-services.mortons.site`) + traefik.http.routers.eo-services-client-https.tls: "" + traefik.http.routers.eo-services-client-https.tls.certresolver: le + traefik.http.services.eo-services-client.loadbalancer.server.port: "80" + environment: + TZ: America/Chicago + image: registry.mortons.site/eo-services-client:latest + networks: + traefik_public: null + volumes: + - type: volume + source: images + target: /usr/share/nginx/html/images + volume: {} + +networks: + traefik_public: + name: traefik_public + external: true + +volumes: + images: + name: eo-services_images + driver: local + driver_opts: + device: :/volume1/docker-volumes/eo-services/images + o: addr=192.168.1.21 + type: nfs4