diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-26 10:28:25 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-26 10:28:25 +0100 |
commit | 5d55842c465710c910735bb6a55fcb42f910984e (patch) | |
tree | 29a6343522e74e033972556bbdab8494fc9a07fc /docker-compose.yml | |
parent | a65b12797c73a4b0be6f2e73a805d476a1581e95 (diff) |
update commit
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index f2b177c..6c6add5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,14 +3,55 @@ version: "3" services: gotenberg: image: "gotenberg/gotenberg:7" + networks: + - "internal" - php: - image: "php" - links: + cli: + image: "php:cli-alpine" + depends_on: - "gotenberg" environment: - "DECKLIST=${DECKLIST}" volumes: - "./:/usr/src/app" + networks: + - "internal" working_dir: "/usr/src/app" - command: ["php", "./index.php"] + command: ["php", "./mtg-pdf.php"] + + php: + # image: php:fpm-alpine + build: . + depends_on: + - "gotenberg" + # volumes: + # - "./:/var/www/html" + networks: + - "internal" + + web: + image: nginx:alpine + depends_on: + - "php" + environment: + - "DOMAIN=${DOMAIN}" + volumes: + - "./:/var/www/html" + - "./web.conf.template:/etc/nginx/templates/web.conf.template" + networks: + - "internal" + - "traefik" + labels: + - "traefik.enable=true" + - "traefik.docker.network=${TRAEFIK_NETWORK}" + - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure" + - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls=true" + - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt" + + +networks: + internal: + traefik: + name: "${TRAEFIK_NETWORK}" + external: true |