-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
49 lines (45 loc) · 1.05 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
version: '3.7'
services:
nginx:
image: nginx:1.17
volumes:
- "./nginx/conf.d:/etc/nginx/conf.d:ro"
- "./websh_front/public:/var/www:ro"
ports:
- "80:80"
# #204
# WSL2に移行してから host モードでコンテナを起動するとブラウザからアクセスで
# きなかったのでコメントアウト
# network_mode: "host"
websh_front:
build: &app-build
context: .
dockerfile: Dockerfile
target: base
volumes:
- "./websh_front:/work"
entrypoint: nimble
command:
- build
- -Y
- -d:local
- -d:tag:tag
- -d:revision:rev
websh_server:
build: *app-build
volumes:
- "./websh_server:/work"
environment:
HOST_PWD: "$PWD/websh_server"
entrypoint: ./entrypoint.sh
ports:
- "5000:5000"
network_mode: "host"
websh_remover:
build: *app-build
volumes:
- "./websh_remover:/work"
- "./websh_server/tmp:/dirs"
entrypoint: ./entrypoint.sh
environment:
WEBSH_REMOVER_DIR: "/dirs"