This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
128 lines (119 loc) · 3.31 KB
/
docker-compose.dev.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.8"
volumes:
client_parcel-cache:
inspector_parcel-cache:
services:
sqlite-web:
image: coleifer/sqlite-web # https://github.com/coleifer/sqlite-web
container_name: sqlite-web
init: true
ports:
- "9100:8080"
volumes:
- "./db:/data"
environment:
SQLITE_DATABASE: database.db
cdn:
container_name: cdn
image: nginx:1.19.6
init: true
ports:
- "9000:443"
environment:
DOMAIN: cdn.midishare.local
SSL_CERT_PATH: /usr/share/nginx/ssl/_wildcard.midishare.local.pem
SSL_KEY_PATH: /usr/share/nginx/ssl/_wildcard.midishare.local-key.pem
PUBLIC_PATH: /usr/share/nginx/html
volumes:
- "./ssl:/usr/share/nginx/ssl:ro"
- "./assets:/usr/share/nginx/html:ro"
- "./projects/cdn/templates:/etc/nginx/templates:ro"
client:
build:
target: development
expose:
- "3000"
environment:
NODE_ENV: development
PUBLIC_URL: https://www.midishare.local:3000
PUBLIC_CDN_URL: https://cdn.midishare.local:9000
STATIC_CDN_URL: https://cdn.midishare.local:9000
SERVER_URL: https://api.midishare.local:3000
WS_URL: wss://api.midishare.local:3000
volumes:
- "./projects/client/src:/code/app/src"
- "./projects/keyboard/dist:/code/keyboard/dist:ro"
- "./projects/common/dist:/code/common/dist:ro"
- type: volume
source: client_parcel-cache
target: /parcel-cache
command:
- "--cache-dir=/parcel-cache"
- "--port=3000"
server:
build:
target: development
expose:
- "3000"
env_file: projects/server/.env.development
environment:
PORT: 3000
NODE_ENV: development
BASE_URL: https://api.midishare.local:3000
CLIENT_URL: https://www.midishare.local:3000
COOKIE_DOMAIN: midishare.local
SQLITE_DATABASE_PATH: /db/database.db
SQLITE_MIGRATIONS_PATH: /db/migrations
volumes:
- "./db:/db"
- "./projects/server/src:/code/app/src"
- "./projects/common/dist:/code/common/dist:ro"
nginx:
build:
args:
API_SERVER_URL: http://server:3000
WWW_SERVER_URL: http://client:3000
INSPECTOR_SERVER_URL: http://inspector:3000
API_DOMAIN: api.midishare.local
WWW_DOMAIN: www.midishare.local
INSPECTOR_DOMAIN: inspector.midishare.local
HMR_DOMAIN: hmr.midishare.local
SSL_CERT_PATH: /ssl/_wildcard.midishare.local.pem
SSL_KEY_PATH: /ssl/_wildcard.midishare.local-key.pem
volumes:
- "./ssl:/ssl:ro"
ports:
- "3000:443"
keyboard:
build:
target: development
volumes:
- "./projects/keyboard/src:/code/app/src"
- "./projects/keyboard/dist:/code/app/dist"
command:
- "--watch"
common:
build:
target: development
volumes:
- "./projects/common/src:/code/app/src"
- "./projects/common/dist:/code/app/dist"
command:
- "--watch"
inspector:
container_name: inspector
init: true
build:
context: .
target: development
dockerfile: projects/inspector/Dockerfile
volumes:
- "./projects/inspector/src:/code/src"
- type: volume
source: inspector_parcel-cache
target: /parcel-cache
expose:
- "3000"
command:
- "--cache-dir=/parcel-cache"
- "--port=3000"