-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 1001 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 1001 Bytes
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
networks:
gateherald:
driver: bridge
volumes:
gateherald-data:
services:
backend:
build: .
env_file: .env.production
ports:
- "3000:3000"
networks:
- gateherald
volumes:
- gateherald-data:/app/data
restart: unless-stopped
frontend:
image: nginx:alpine
depends_on:
- backend
networks:
- gateherald
ports:
- "8080:80"
environment:
ADMIN_PROXY_SHARED_SECRET: "${ADMIN_PROXY_SHARED_SECRET}"
# Scope envsubst to only this variable so nginx's own $host, $remote_addr etc. are not touched.
NGINX_ENVSUBST_TEMPLATE_VARS: ADMIN_PROXY_SHARED_SECRET
volumes:
- ./ui:/usr/share/nginx/html:ro
- ./deploy/docker/nginx.conf:/etc/nginx/templates/default.conf.template:ro
- ./deploy/nginx/snippets/gateherald-admin-auth.conf:/etc/nginx/snippets/gateherald-admin-auth.conf:ro
- ./deploy/docker/.htpasswd-gateherald:/etc/nginx/.htpasswd-gateherald:ro
restart: unless-stopped