-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (31 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (31 loc) · 816 Bytes
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
version: "3.3"
networks:
ping-net:
services:
traefik:
image: "traefik:v3.0"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entryPoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
networks:
- ping-net
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
serverappbackend:
image: bansikah/serverappbackend:v1.0
environment:
- APP_VERSION=0.0.1-SNAPSHOT
networks:
- ping-net
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`backend.localhost`)"
- "traefik.http.services.backend.loadbalancer.server.port=8081"
restart: unless-stopped