-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
38 lines (36 loc) · 978 Bytes
/
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
name: portfolio
services:
# https://hub.docker.com/_/varnish
varnish:
image: varnish:alpine
restart: always
depends_on:
- node
volumes:
- ./docker/configuration/default.vcl:/etc/varnish/default.vcl:ro
environment:
VARNISH_SIZE: 128m
healthcheck:
test: wget -O - http://localhost/portfolio
retries: 3
timeout: 5s
ports:
- "80:80"
# https://github.com/FlorianLeChat/Portfolio
node:
image: portfolio
restart: always
command: ./docker/scripts/entrypoint.sh
volumes:
- ./logs:/usr/src/app/logs
environment:
TZ: ${TZ}
healthcheck:
test: wget -O - http://localhost:3000
retries: 3
timeout: 5s
build:
context: .
dockerfile: ./docker/scripts/Dockerfile
expose:
- "3000"