-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
executable file
·64 lines (59 loc) · 1.31 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
version: '3'
services:
mysql:
image: 'mysql:latest'
container_name: mysql
restart: always
volumes:
- ./pkg/configs/sql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
networks:
- default
environment:
- MYSQL_DATABASE=gorm
- MYSQL_USER=gorm
- MYSQL_PASSWORD=gorm
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
redis:
image: 'redis:alpine'
container_name: redis
restart: always
ports:
- 6379:6379
networks:
- default
etcd:
image: 'quay.io/coreos/etcd:v3.5.5'
container_name: etcd
restart: always
ports:
- 2379:2379
networks:
- default
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
- ETCDCTL_API=3
fileserver:
image: 'golang:alpine'
container_name: fileserver
restart: always
volumes:
- ./cmd/publish/public/video:/public/video
- ./cmd/publish/public/cover:/public/cover
- ./pkg/fileserver/main.go:/prog/main.go
ports:
- 8000:8000
networks:
- default
command: 'go run /prog/main.go'
jaeger:
image: 'jaegertracing/all-in-one:latest'
container_name: jaeger
restart: always
ports:
- "6831:6831/udp"
- "16686:16686"
networks:
- default