-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
55 lines (55 loc) · 1.19 KB
/
compose.yaml
File metadata and controls
55 lines (55 loc) · 1.19 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
55
services:
commongame:
build:
context: .
target: dev
working_dir: /app
command: /bin/bash -c -l ./build.dev.sh
environment:
- PORT=8080
env_file:
- .env
ports:
- 3006:8080
develop:
watch:
- action: rebuild
path: ./**/*.go
- action: rebuild
path: ./go.mod
- action: rebuild
path: ./go.sum
- action: sync+restart
path: .
target: /app
ignore:
- ./frontend/node_modules
- ./data
volumes:
- $PWD/data:/app/data
# backup:
# build:
# context: .
# target: backup
# working_dir: /app
# command: /usr/local/bin/backup
# environment:
# - PORT=8081
# env_file:
# - .env
# develop:
# watch:
# - action: rebuild
# path: ./cmd/backup/main.go
# - action: rebuild
# path: ./go.mod
# - action: rebuild
# path: ./go.sum
# # - action: sync+restart
# # path: .
# # target: /app
# # ignore:
# # - ./frontend/node_modules
# # - ./data
# volumes:
# - $PWD/data:/app/data