-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
43 lines (37 loc) · 1.44 KB
/
docker-compose.prod.yaml
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
version: "3.7"
services:
spip:
restart: unless-stopped
networks:
- db
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.spip-${COMPOSE_PROJECT_NAME:?err}.rule=Host(`${COMPOSE_PROJECT_NAME}.${DOMAIN_NAME:-recette.tech}`)"
- "traefik.http.routers.spip-${COMPOSE_PROJECT_NAME}.entrypoints=https"
- "traefik.http.routers.spip-${COMPOSE_PROJECT_NAME}.service=spip-${COMPOSE_PROJECT_NAME}"
- "traefik.http.services.spip-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=80"
- "traefik.docker.network=${TRAEFIK_NETWORK}"
- "traefik.http.routers.spip-${COMPOSE_PROJECT_NAME}.tls.certresolver=myresolver"
phpmyadmin:
restart: unless-stopped
networks:
- db
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.pma-${COMPOSE_PROJECT_NAME}.rule=Host(`pma-${COMPOSE_PROJECT_NAME}.${DOMAIN_NAME:-recette.tech}`)"
- "traefik.http.routers.pma-${COMPOSE_PROJECT_NAME}.entrypoints=https"
- "traefik.http.routers.pma-${COMPOSE_PROJECT_NAME}.service=pma-${COMPOSE_PROJECT_NAME}"
- "traefik.http.services.pma-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=80"
- "traefik.docker.network=${TRAEFIK_NETWORK}"
- "traefik.http.routers.pma-${COMPOSE_PROJECT_NAME}.tls.certresolver=myresolver"
db:
restart: unless-stopped
networks:
- db
networks:
db:
traefik:
external:
name: "${TRAEFIK_NETWORK}"