-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (87 loc) · 1.93 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3.8'
services:
# Reverse Proxy
nginx-proxy:
image: nginxproxy/nginx-proxy:1.0
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d
- conf:/etc/nginx/conf.d
- html:/usr/share/nginx/html
networks:
- app-network
acme-companion:
image: nginxproxy/acme-companion:2.2
container_name: nginx-proxy-acme
restart: always
volumes_from:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
networks:
- app-network
# Services
storage-node:
container_name: storage-node
restart: always
build:
context: .
dockerfile: storage-node/Dockerfile
depends_on:
- rollup-node
networks:
- app-network
environment:
- PORT=3001
- MASTER=http://rollup-node:3000
volumes:
- files:/app/storage-node/files
rollup-node:
container_name: rollup-node
restart: always
build:
context: .
dockerfile: rollup-node/Dockerfile
networks:
- app-network
environment:
- PORT=3000
volumes:
- accounts:/app/rollup-node/accounts
client-app:
container_name: client-app
depends_on:
- storage-node
- rollup-node
restart: always
build:
context: .
dockerfile: client-app/Dockerfile
args:
- PUBLIC_ROLLUP_API_URL=https://insideout.codes/api/rollup
- PUBLIC_NODE_API_URL=https://insideout.codes/api/storage
networks:
- app-network
environment:
- VIRTUAL_HOST=insideout.codes
- LETSENCRYPT_HOST=insideout.codes
volumes:
vhost:
html:
certs:
acme:
conf:
files:
accounts:
networks:
app-network:
driver: bridge