-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.18 KB
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
version: "3"
services:
rabbitmq:
image: rabbitmq:3
command: rabbitmq-server
expose:
- 5672
- 15672
healthcheck:
timeout: 5s
interval: 5s
retries: 5
test:
- "CMD"
- "rabbitmqctl"
- "status"
proxy:
image: traefik:v1.7
labels:
- traefik.frontend.rule=Host:localhost
- traefik.enable=true
- traefik.port=80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- '80:80'
- '8090:8080'
command: --docker \
--docker.watch \
--docker.exposedbydefault=false \
--constraints=tag==test-rabbitmq \
--logLevel=DEBUG \
--accessLog \
--web
backend:
build:
context: ./backend
dockerfile: dockerfile
command: /start-reload.sh
environment:
- SERVER_HOST=http://localhost
- SERVER_NAME=localhost
labels:
- traefik.frontend.rule=PathPrefix:/,
- traefik.enable=true
- traefik.port=80
- traefik.tags=test-rabbitmq
restart: on-failure
depends_on:
- rabbitmq
volumes:
- ./backend/app:/app
networks:
default:
aliases:
- localhost