forked from mmorejon/microservices-docker-go-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.23 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
version: '3.7'
services:
proxy:
image: traefik:1.7.4-alpine
command:
- "--api"
- "--docker"
- "--docker.watch"
labels:
- "traefik.frontend.rule=Host:monitor.local"
- "traefik.port=8080"
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
ports:
- target: 80
published: 80
protocol: tcp
mode: host
movies:
build: ./movies
image: cinema/movies
labels:
- "traefik.backend=movies"
- "traefik.frontend.rule=Host:movies.local"
bookings:
build: ./bookings
image: cinema/bookings
labels:
- "traefik.backend=bookings"
- "traefik.frontend.rule=Host:bookings.local"
showtimes:
build: ./showtimes
image: cinema/showtimes
labels:
- "traefik.backend=showtimes"
- "traefik.frontend.rule=Host:showtimes.local"
users:
build: ./users
image: cinema/users
labels:
- "traefik.backend=users"
- "traefik.frontend.rule=Host:users.local"
db:
image: mongo:3.3
ports:
- target: 27017
published: 27017
protocol: tcp
mode: host
volumes:
- type: bind
source: ./backup
target: /backup