-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (29 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
32 lines (29 loc) · 1.1 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
version: "3.8"
# Static site server for the Aetherneum brand pillar.
# Serves: aetherneum.com (root) + university.aetherneum.com
# Routed by a separate reverse-proxy that runs on the same Docker network.
#
# Paths below are configurable via env vars so this file works in any deployment
# layout (production bind-mounts, local dev, container-only builds). Override:
# SITES_AETHERNEUM=./aetherneum-com
# SITES_UNIVERSITY=./university-aetherneum-com
# SITES_NGINX_CONF=./nginx.conf
services:
aetherneum-sites:
image: nginx:1.27-alpine
container_name: aetherneum-sites
restart: unless-stopped
networks:
- aetherneum-proxy
volumes:
- ${SITES_AETHERNEUM:-./aetherneum-com}:/usr/share/nginx/sites/aetherneum-com:ro
- ${SITES_UNIVERSITY:-./university-aetherneum-com}:/usr/share/nginx/sites/university-aetherneum-com:ro
- ${SITES_NGINX_CONF:-./nginx.conf}:/etc/nginx/conf.d/default.conf:ro
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/_health"]
interval: 30s
timeout: 5s
retries: 3
networks:
aetherneum-proxy:
external: true