This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (80 loc) · 1.5 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3'
services:
# WORKERS
# keep in sync with Caddyfile
eth-rest-01:
build: .
env_file:
- .env
depends_on:
- redis
environment:
- HTTP_PORT=80
volumes:
- gopath:/go/pkg
- gocache:/root/.cache/go-build
eth-rest-02:
build: .
env_file:
- .env
depends_on:
- redis
environment:
- HTTP_PORT=80
volumes:
- gopath:/go/pkg
- gocache:/root/.cache/go-build
eth-rest-03:
build: .
env_file:
- .env
depends_on:
- redis
environment:
- HTTP_PORT=80
volumes:
- gopath:/go/pkg
- gocache:/root/.cache/go-build
# TEST
eth-rest-test:
build: .
env_file:
- .env
depends_on:
- redis
environment:
- HTTP_PORT=80
- ETH_REQ_DELAY_SEC=0.5
volumes:
- gopath:/go/pkg
- gocache:/root/.cache/go-build
# entrypoint: task test
ports:
- "${HTTP_PORT_TEST}:80"
- 2345:2345
entrypoint: task debug
security_opt:
- seccomp:unconfined
# DEPS
redis:
image: redis:7-alpine
command:
- redis-server
- /usr/local/etc/redis/redis.conf
volumes:
- ./configs/redis.conf:/usr/local/etc/redis/redis.conf
load-balancer:
image: caddy:2-alpine
volumes:
- ./configs/Caddyfile:/etc/caddy/Caddyfile
depends_on:
- eth-rest-01
- eth-rest-02
- eth-rest-03
ports:
- "${HTTP_PORT}:80"
volumes:
gopath:
gocache:
rabbitmq-data:
rabbitmq-log: