-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
94 lines (83 loc) · 2.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3"
services:
postgresql:
image: postgres:12
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- '5432:5432'
adminer:
image: adminer
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminer.rule=Host(`adminer.${TRAEFIK_HOST}`)"
- "traefik.http.routers.adminer.entrypoints=web"
mailhog:
image: mailhog/mailhog
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailhog.rule=Host(`mailhog.${TRAEFIK_HOST}`)"
- "traefik.http.routers.mailhog.entrypoints=web"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"
redis:
image: redis:latest
restart: always
ports:
- '6379:6379'
redisweb:
image: rediscommander/redis-commander:latest
restart: always
environment:
REDIS_HOSTS: redis
labels:
- "traefik.enable=true"
- "traefik.http.routers.redisweb.rule=Host(`redisweb.${TRAEFIK_HOST}`)"
- "traefik.http.routers.redisweb.entrypoints=web"
- "traefik.http.services.redisweb.loadbalancer.server.port=8081"
didebaan:
build: images/didebaan
environment:
E_SERVICES_POSTGRES_USER: ${POSTGRES_USER}
E_SERVICES_POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
E_SERVICES_POSTGRES_DB: ${POSTGRES_DB}
E_SERVICES_POSTGRES_HOST: postgresql
E_SERVICES_REDIS_ADDRESS: redis
volumes:
- ./:/elbix.dev/engine
- ./tmp/cache:/go/pkg/
command:
- "make run-server"
ports:
- 55055:55055
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.${TRAEFIK_HOST}`)"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.services.api.loadbalancer.server.port=8090"
traefik:
image: "traefik:latest"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--api=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "containous/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.${TRAEFIK_HOST}`)"
- "traefik.http.routers.whoami.entrypoints=web"