generated from sagikazarmark/modern-go-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
40 lines (36 loc) · 1.2 KB
/
docker-compose.prod.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
version: "3.1"
services:
db:
image: mysql:5.6
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "app_user"
MYSQL_PASSWORD: "password"
MYSQL_DATABASE: message_app
dockerhost:
image: qoomon/docker-host:2.3.0
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
doc:
image: swaggerapi/swagger-ui
environment:
SWAGGER_JSON: /messaging/api/openapi.yaml
ports:
- 127.0.0.1:81:8080
volumes:
- ./.gen/api/openapi/messaging:/messaging
depends_on:
- dockerhost
app:
image: docker.pkg.github.com/prasetyowira/message/message:latest
environment:
APP_CONFIG_DIR: /config
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:8001:8001
- 127.0.0.1:10000:10000
depends_on:
- db
volumes:
- ./config.toml.dist:/config/config.toml
command: ["/wait-for-db.sh", "db:3306", "--timeout=0", "--", "message", "--telemetry-addr", ":10000", "--http-addr", ":8000", "--grpc-addr", ":8001"]