-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yaml
51 lines (48 loc) · 1.49 KB
/
docker-compose.yaml
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
services:
frontend:
build:
context: .
dockerfile: ./deploy/frontend.dockerfile
args:
# The release tag for the client build (by default the client uses `latest`).
# - For a different build, supply the following param: `/play?r={VERSION}`.
VERSION: "dev"
# Mode must be either "release" (for production) or "watch" (for development)
MODE: "release"
# The URL that will be accessed by the user's browser
# - When running in production, you likely want to use `wss://{YOUR_DOMAIN}/ws`
SERVER_SOCKET_URL: "ws://0.0.0.0:8080/ws"
volumes:
- frontend:/build
ports:
# Port used for hot reloading in shadow-cljs's watch mode
- "9630:9630"
develop:
watch:
- action: sync
path: ./src/main/ogres/app
target: /build/src/main/ogres/app
- action: rebuild
path: package.json
backend:
build:
context: .
dockerfile: ./deploy/backend.dockerfile
expose:
# The websocket connection exposed by the server
- "8090"
nginx:
build:
context: .
dockerfile: ./deploy/nginx.dockerfile
args:
VERSION: "dev"
# The URL to the server's websocket, which will be proxied by nginx
SERVER_SOCKET_URL: "http://backend:8090/ws"
volumes:
- ./deploy/docker-nginx.template:/etc/nginx/templates/default.conf.template:ro
- frontend:/usr/share/nginx/app
ports:
- "8080:80"
volumes:
frontend: