-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
55 lines (54 loc) · 1.22 KB
/
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
version: "3.8"
services:
#
# backend server
#
server:
#restart: always
#image: mcl_slimjre:v03
build:
context: ./server
target: relay # release/artifact app stage
ports:
- 8080:8080
command:
stop_signal: SIGINT
#
# ...nginx
#
nginx:
image: nginx:1.25.4-alpine
ports:
- "8083:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
#
# frontend server
#
client:
#image: mcl_slimRust:v01
build:
#context: ./client
dockerfile: ./client/Dockerfile.another
target: relay # relay release/artifact app stage
tags:
- "yew_mcl:01"
command: /bin/sh -c "./trunk serve --address 0.0.0.0 --port ${TRUNK_SERVE_PORT:-8081}"
environment:
- SPRING_PORT=${SPRING_PORT:-8080}
- TRUNK_SERVE_PORT=${TRUNK_SERVE_PORT:-80}
- TRUNK_SERVE_HOST=localhost
ports:
- "${TRUNK_SERVE_PORT:-8081}:${TRUNK_SERVE_PORT:-8081}"
volumes:
- type: bind
source: ../
target: /app
- yew-ui-target-cache:/app/yew-ui/target
- yew-ui-cargo-registry-cache:/usr/local/cargo/registry
depends_on:
- nginx
stop_signal: SIGINT
volumes:
yew-ui-target-cache:
yew-ui-cargo-registry-cache: