blob: e8e8280f0fb7dbef7845b57a7bf2c94a3d785269 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
services:
gotenberg:
image: "gotenberg/gotenberg:7"
networks:
- "internal"
cli:
image: "php:cli-alpine"
depends_on:
- "gotenberg"
environment:
- "DECKLIST=${DECKLIST}"
volumes:
- "./:/usr/src/app"
networks:
- "internal"
working_dir: "/usr/src/app"
command: ["php", "-d", "memory_limit=256M", "./mtg-pdf.php"]
profiles: [cli]
php:
# image: php:fpm-alpine
build: .
depends_on:
- "gotenberg"
# volumes:
# - "./:/var/www/html"
networks:
- "internal"
web:
image: nginx:alpine
restart: unless-stopped
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
|