-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (44 loc) · 1.05 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
version: "3.5"
services:
app:
build: .
command: npm run start
ports:
- target: 3000
published: 3000
volumes:
- .:/app
restart: always
labels:
- "traefik.backend= app"
- "traefik.frontend.rule=Host:app.localhost;PathPrefixStrip:/api"
- "traefik.port=3000"
- "traefik.enable=true"
working_dir: /app
reverse-proxy:
image: traefik
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# So that Traefik can listen to the Docker events
client:
image: vtcs2304s19/blabber-client
labels:
- "traefik.backend= client"
- "traefik.frontend.rule=Host:app.localhost"
- "traefik.port=80"
- "traefik.enable=true"
tests:
image: vtcs2304s19/blabber-api-tests
environment:
SERVICE_NAME: app
API_PORT: "3000"
mongo:
image: mongo
volumes:
- mongo-data:/data/db
volumes:
mongo-data: