-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
37 lines (36 loc) · 945 Bytes
/
docker-compose.yaml
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
version: '3.1'
services:
db:
image: mysql:8.0.17
container_name: db
command: [ '--default-authentication-plugin=mysql_native_password', '--default-storage-engine=innodb' ]
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=local_db
ports:
- 43306:3306
hostname: db
redis:
container_name: redis
image: grokzen/redis-cluster:6.0.8
ports:
- "17000-17005:17000-17005"
environment:
- IP=0.0.0.0
- INITIAL_PORT=17000
app-server:
image: zacscoding/echo-gorm-realworld-app
build:
context: .
dockerfile: cmd/server/Dockerfile
container_name: app-server
ports:
- "8080:8080"
volumes:
- ./fixtures/config/config-docker.yaml:/config/config.yaml
- ./migrations:/migrations
- ./docs/doc.html:/config/doc.html
command: app-server --config /config/config.yaml
restart: always
depends_on:
- "db"