-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml.dev
81 lines (73 loc) · 1.62 KB
/
docker-compose.yml.dev
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
version: '3.4'
x-networks: &networks
networks:
- your_network
services:
souin:
build:
context: .
target: souin
args:
GO_VERSION: ${GO_VERSION}
ports:
- 80:80
- 443:443
environment:
GOPATH: /app
volumes:
- ./configuration/configuration.yml:/configuration.yml
<<: *networks
olric:
build:
context: ./docker
dockerfile: Dockerfile-olric
target: olric
restart: on-failure
<<: *networks
etcd:
image: quay.io/coreos/etcd:v3.5.13
ports:
- 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
caddy:
build:
context: .
dockerfile: ./docker/caddy.Dockerfile
depends_on:
- etcd
- redis
ports:
- 4443:4443
- 2019:2019
<<: *networks
traefik:
image: traefik:latest
command: --providers.docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
<<: *networks
whoami:
image: traefik/whoami
labels:
- traefik.http.routers.whoami.rule=Host(`domain.com`)
<<: *networks
networks:
your_network:
external: true