-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.31 KB
/
docker-compose.yml
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
version: '3.7'
services:
traefik:
container_name: toeggelomat_traefik
image: traefik:v2.0
ports:
- 81:80
- 8181:8080
volumes:
- ./traefik/traefik.yml:/etc/traefik/traefik.yml
- /var/run/docker.sock:/var/run/docker.sock
frontend:
container_name: toeggelomat_frontend
image: spoud/toeggelomat-frontend
build: frontend/
ports:
- 82:80
labels:
- traefik.http.routers.toeggelomat_frontend.rule=PathPrefix(`/`)
- traefik.http.services.toeggelomat_frontend-service.loadbalancer.server.port=80
- traefik.enable=true
backend:
container_name: toeggelomat_backend
image: spoud/toeggelomat-backend
build:
context: backend/
# dockerfile: src/main/docker/Dockerfile.jvm
dockerfile: src/main/docker/Dockerfile.native-micro
ports:
- 8080
labels:
- traefik.http.routers.toeggelomat_backend.rule=PathPrefix(`/api`)
- traefik.http.services.toeggelomat_backend-service.loadbalancer.server.port=8080
- traefik.enable=true
postgres:
container_name: toeggelomat_postgres
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
kafka:
container_name: toeggelomat_kafka
image: apache/kafka
ports:
- 9092:9092