Skip to content

Commit aa2bb10

Browse files
committed
Chore: update spring service to use prebuilt image and add Traefik labels
- replace the build context with a prebuilt image for the spring service - add Traefik labels for routing and TLS configuration - remove dependency on postgresql - update service configuration for improved deployment and reverse proxy integration.
1 parent eff107b commit aa2bb10

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

compose.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
services:
22
spring:
33
container_name: mph-server
4-
build: .
4+
image: ghcr.io/iodsky/motorph-api:latest
55
restart: always
66
ports:
77
- 8001:8001
88
env_file:
99
- .env
10-
depends_on:
11-
- postgresql
10+
labels:
11+
- "traefik.enable=true"
12+
- "traefik.http.routers.motorph.rule=Host(`motorph.iodsky.com`)"
13+
- "traefik.http.routers.motorph.entrypoints=websecure"
14+
- "traefik.http.routers.motorph.tls.certresolver=myresolver"
15+
- "traefik.http.services.orderly.loadbalancer.server.port=8001"
1216
networks:
1317
- mph-network
1418
- traefik
15-
1619
watchtower:
1720
image: containrrr/watchtower
1821
restart: always

0 commit comments

Comments
 (0)