-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
105 lines (94 loc) · 2.15 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3"
services:
etcd:
image: bitnami/etcd:latest
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
networks:
- fullbottle-network
ports:
- "2379:2379"
- "2380:2380"
nginx:
build: ./fullbottle-fe
restart: "always"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- fullbottle-network
ports:
- "80:80"
api:
build: ./api
command: --registry=etcd --registry_address=etcd:2379 --server_address=0.0.0.0:8000
restart: always
networks:
- fullbottle-network
env_file:
- .env
depends_on:
- user-service
ports:
- "8000:8000"
user-service: &service
build: ./user
command: --registry=etcd --registry_address=etcd:2379
restart: always
networks:
- fullbottle-network
environment:
- SERVER_IP=${public_ip}
env_file:
- .env
depends_on:
- mysql
bottle-service:
<<: *service
build: ./bottle
upload-service:
<<: *service
build: ./upload
share-service:
<<: *service
build: ./share
mysql:
image: mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
networks:
- fullbottle-network
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
volumes:
- ./mysql/data/db:/var/lib/mysql
- ./mysql/data/conf:/etc/mysql/conf.d
redis:
image: redis
restart: always
networks:
- fullbottle-network
ports:
- "6379:6379"
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- ./redis/data:/data
weed:
image: chrislusf/seaweedfs
restart: always
networks:
- fullbottle-network
ports:
- "9333:9333"
- "8080:8080"
command: server -dir="/data" -volume.publicUrl=${public_ip}:8080
volumes:
- ./fs/data:/data
networks:
fullbottle-network:
driver: bridge