-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (51 loc) · 1.71 KB
/
docker-compose.yaml
File metadata and controls
54 lines (51 loc) · 1.71 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
services:
frontend:
build:
context: .
dockerfile: ./deploy/frontend.dockerfile
args:
# Mode must be either "release" (for production) or "watch" (for development)
MODE: "release"
# The release tag for the client build (which can be accessed via `/play?r=VERSION`)
# - Note: Only applicable for MODE `release`.
VERSION: "dev"
# The URL that will be accessed by the user's browser
# - When run in production, you will likely want to use `wss://{YOUR_DOMAIN}/ws`,
# with the Nginx container behind a SSL-terminated reverse proxy.
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:
# When specified, the VERSION argument will be appended to `releases.txt`
# - NOTE: This will prompt the client that an upgrade is available to VERSION.
# 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: