-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (38 loc) · 987 Bytes
/
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
version: "3"
services:
app:
image: node:alpine
## optional container_name
# container_name: "dev_node"
user: "node"
working_dir: /home/node/app
labels:
# - 'traefik.backend=dev_node'
- 'traefik.frontend.rule=Host: localhost; PathPrefix: /api'
environment:
- NODE_ENV=production
volumes:
- ./api:/home/node/app
- ./api/node_modules:/home/node/node_modules
expose:
- "1337"
command: "node ./src/server/index.js"
nginx:
image: nginx
## optional container_name
# container_name: "dev_nginx"
labels:
# - 'traefik.backend=dev_nginx'
- 'traefik.frontend.rule=Host: localhost'
volumes:
- ./html:/usr/share/nginx/html
traefik:
image: traefik
## optional container_name
# container_name: "dev_traefik"
command: -c /dev/null --docker --logLevel=INFO
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock