-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (38 loc) · 1.04 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
version: "3.4"
services:
server:
image: acim/go-reflex
restart: always
container_name: server
environment:
- RACE_DETECTOR=1
- RUN_ARGS=server
volumes:
- ./:/app
working_dir: /app
command: >
sh -c "
reflex -r './*.go' -s -- sh -c 'go run main.go'
"
ports:
- 8090:9999
debugger:
image: acim/go-reflex
restart: always
container_name: debugger
security_opt:
- seccomp:unconfined
environment:
- RACE_DETECTOR=1
- RUN_ARGS=server
volumes:
- ./:/app
working_dir: /app
command: >
sh -c "
go get github.com/go-delve/delve/cmd/dlv
reflex -r './*.go' -s -- sh -c 'dlv debug --headless --listen=:2345 --api-version=2'
"
ports:
- 2345:2345
- 9999:9999