-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
72 lines (72 loc) · 1.64 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
version: "3.7"
services:
node-router:
image: node:12-slim
restart: always
command: bash -c "npm run prepare && npm run start:router"
working_dir: /usr/src/service
volumes:
- type: bind
source: .
target: /usr/src/service
environment:
- NODE_ENV=development
- HTTPS=0
- NODE_TLS_REJECT_UNAUTHORIZED=0
- DOCKER_CONTAINER=1
- NR_LOG_DEBUG=1
networks:
local-shared-net:
aliases:
- noderouter.localhost
ports:
- "80:80"
- "443:443"
- "4010:4010"
nr-client:
image: node:12-slim
restart: always
command: bash -c "npm run prepare && npm run start:client"
working_dir: /usr/src/service
volumes:
- type: bind
source: .
target: /usr/src/service
environment:
- NR_HOSTS_FILE=src/conf/dist/hosts.json
- DOCKER_CONTAINER=1
- NR_LOG_DEBUG=1
networks:
- local-shared-net
whoami:
image: emilevauge/whoami # A container that exposes an API to show it's IP address
hostname: whoami.localhost
container_name: whoami
restart: always
networks:
local-shared-net:
aliases:
- whoami.localhost
ports:
- "4011:80"
expose:
- 80
portainer:
image: portainer/portainer
hostname: portainer.localhost
container_name: portainer
restart: always
networks:
local-shared-net:
aliases:
- portainer.localhost
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "4012:9000"
expose:
- 9000
networks:
local-shared-net:
driver: bridge
name: "local-shared-net"