-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (65 loc) · 1.45 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
version: '3'
services:
traefik:
command: '--web --docker --docker.domain=localhost'
image: traefik
ports:
- '80:80'
- '8080:8080'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/dev/null:/traefik.toml'
logging:
driver: none
content:
image: node:12
working_dir: /var/www/app
volumes:
- ./packages/package-content/:/var/www/app
command: npm run dev
env_file:
- .env
depends_on:
- traefik
labels:
- traefik.port=4003
- 'traefik.frontend.rule=Host:content.localhost'
commerce:
image: node:12
working_dir: /var/www/app
volumes:
- ./packages/package-commerce/:/var/www/app
command: npm run dev
env_file:
- .env
depends_on:
- traefik
labels:
- traefik.port=4003
- 'traefik.frontend.rule=Host:commerce.localhost'
search:
image: node:12
working_dir: /var/www/app
volumes:
- ./packages/package-search/:/var/www/app
command: npm run dev
env_file:
- .env
depends_on:
- traefik
labels:
- traefik.port=4003
- 'traefik.frontend.rule=Host:search.localhost'
frontend:
image: node:10-alpine
working_dir: /var/www/app
volumes:
- ./packages/package-frontend/:/var/www/app
command: npm run dev
env_file:
- .env
depends_on:
- traefik
labels:
- traefik.port=4200
- 'traefik.frontend.rule=Host:localhost'