-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.15 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
version: "3.3"
services:
shiny:
build: ./app
restart: unless-stopped
environment:
SHINY_LOG_STDERR: 1
expose:
- "3838"
depends_on:
- db
endpoints:
build: ./app/api/endpoints
restart: unless-stopped
expose:
- "8080"
depends_on:
- db
db:
image: postgres:13
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB:-lnd}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-localdbpassword}
ports:
- '5432:5432'
volumes:
- ./${POSTGRES_SCHEMA:-schema.sql}:/docker-entrypoint-initdb.d/lnd.sql
- postgres:/var/lib/postgresql/data
shiny-proxy:
image: caddy:alpine
restart: unless-stopped
environment:
- SERVER_NAME=${SERVER_NAME:-localhost}
ports:
- "80:80"
- "443:443"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/docs/ui/build:/var/www/ui
- $PWD/docs/api:/var/www/api
- caddy_data:/data
- caddy_config:/config
depends_on:
- shiny
- db
volumes:
caddy_data:
caddy_config:
postgres: