forked from Lissy93/my-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (33 loc) · 1.16 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
---
# Welcome to Devolio! Your personal developer portfolio website
# To get started, just run `docker compose up -d`
# You can configure your container here, by modifying this file
version: '3.8'
services:
devolio:
container_name: Devolio
# Pull latest image from DockerHub
# image: lissy93/devolio
# To build from source, replace 'image: lissy93/devolio' with 'build: .'
build: .
# Set port that web service will be served on. Keep container port as 80
ports:
- 4000:80
# Set any environmental variables
environment:
- NODE_ENV=production
# Specify any environment variables you'd like to use within the app
# - TWITTER_TOKEN='' # (Optional) If you want to use the Twitter widget
# - GITHUB_TOKEN='' # (Optional) If you want to use the GitHub widget
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
# - UID=1000
# - GID=1000
# Specify restart policy
restart: unless-stopped
# Configure healthchecks
healthcheck:
test: ['CMD', 'node', '/app/health-check']
retries: 3
interval: 5m
timeout: 10s
start_period: 30s