forked from darkweak/souin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.test
77 lines (69 loc) · 1.59 KB
/
docker-compose.yml.test
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
version: '3.4'
x-networks: &networks
networks:
- your_network
services:
souin:
build:
context: .
target: souin
dockerfile: Dockerfile-dev
args:
GO_VERSION: ${GO_VERSION}
depends_on:
- olric
ports:
- 80:80
- 443:443
environment:
GOPATH: /app
volumes:
- ./configuration/configuration.yml:/configuration.yml
<<: *networks
olric:
build:
context: $PWD/docker
dockerfile: Dockerfile-olric
target: olric
restart: on-failure
<<: *networks
etcd:
image: quay.io/coreos/etcd:v3.5.13
ports:
- 2379:2379
- 2380
- 4001
environment:
ETCD_NAME: etcd0
ETCD_ADVERTISE_CLIENT_URLS: http://etcd:2379,http://etcd:4001
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379,http://0.0.0.0:4001
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd:2380
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER_TOKEN: etcd-cluster-1
ETCD_INITIAL_CLUSTER: etcd0=http://etcd:2380
ETCD_INITIAL_CLUSTER_STATE: new
<<: *networks
redis:
image: redis:6.2-alpine
ports:
- 6379:6379
command: redis-server
<<: *networks
redis-insight:
image: redis/redisinsight:latest
volumes:
- ./redis-data:/data
ports:
- 5540:5540
traefik:
image: traefik:latest
command: --providers.docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
whoami:
image: traefik/whoami
labels:
- traefik.http.routers.whoami.rule=Host(`domain.com`)
networks:
your_network:
external: true