-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 942 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
name: portfolio
services:
# https://hub.docker.com/_/varnish
varnish:
image: varnish:alpine
depends_on:
- node
volumes:
- ./docker/default.vcl:/etc/varnish/default.vcl:ro
environment:
VARNISH_SIZE: 128m
healthcheck:
test: wget -O - http://localhost/portfolio
retries: 3
timeout: 5s
ports:
- "8080:80"
# https://github.com/FlorianLeChat/Portfolio
node:
image: portfolio
restart: always
develop:
watch:
- action: sync
path: .
target: /usr/src/app
healthcheck:
test: wget -O - http://localhost:3000
retries: 3
timeout: 5s
build:
context: .
dockerfile: ./docker/Dockerfile.${NEXT_PUBLIC_ENV}
ports:
- "3000:3000"