-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.27 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: ${COMPOSE_PROJECT_NAME:-thebytearray}
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- NODE_ENV=${NODE_ENV:-production}
image: thebytearray/website:${IMAGE_TAG:-latest}
container_name: ${COMPOSE_PROJECT_NAME:-thebytearray}_app
expose:
- "80"
environment:
- NODE_ENV=${NODE_ENV:-production}
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
"wget -qO- http://127.0.0.1/health.html > /dev/null || exit 1",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- web
edge:
build:
context: .
dockerfile: Dockerfile.edge
image: thebytearray/website:edge
container_name: ${COMPOSE_PROJECT_NAME:-thebytearray}_edge
ports:
- "80:80"
- "443:443"
environment:
- SITE_HOST=app
volumes:
- certbot_etc:/etc/letsencrypt
- certbot_var:/var/lib/letsencrypt
- certbot_webroot:/var/www/certbot
depends_on:
app:
condition: service_healthy
restart: unless-stopped
networks:
- web
networks:
web:
driver: bridge
volumes:
certbot_etc:
driver: local
certbot_var:
driver: local
certbot_webroot:
driver: local