-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 852 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 852 Bytes
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
version: '2'
services:
hugo:
container_name: hugo
image: jojomi/hugo:latest
volumes:
- ./:/src
- ./public:/public
restart: always
working_dir: /src/site
# command: ["tail", "-f", "/dev/null"]
# command: hugo server --bind="0.0.0.0"
command: hugo server --config netlify.toml,base.toml --watch=true --disableFastRender --destination="/public" --bind="0.0.0.0"
ports:
- 1313:1313
web:
container_name: web
image: nginx:stable
volumes:
- ./public:/usr/share/nginx/html:ro
- ./nginx/conf.d:/etc/nginx/conf.d
ports:
- "80:80"
restart: always
node:
container_name: node
image: "node:12"
user: "node"
working_dir: /home/node/app
volumes:
- ./:/home/node/app
# command: "npm start"
command: ["tail", "-f", "/dev/null"]