This repository was archived by the owner on Sep 30, 2022. It is now read-only.
forked from TenderPro/rpc-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (100 loc) · 2.62 KB
/
docker-compose.yml
File metadata and controls
110 lines (100 loc) · 2.62 KB
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
106
107
108
109
110
# This file used by make for docker-composer container operations
# including docker image build
version: '3.4'
services:
app:
image: ${APP_IMAGE}
command: ${APP_MODE} --debug --trace.host log --mq_url nats:4222 --host ${APP_SITE}
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:${APP_SITE}"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
build:
context: .
args:
- GOPROXY
networks:
- app-network
log:
image: jaegertracing/all-in-one:latest
# ports:
# - "6831:6831/udp"
# - "16686:16686"
labels:
- "traefik.enable=true"
# - "traefik.frontend.rule=Host:${APP_SITE};PathPrefixStrip:/dev/jaeger"
- "traefik.frontend.rule=Host:jaeger.${APP_SITE}"
- "traefik.port=16686"
networks:
- app-network
log-local:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
networks:
- app-network
nats:
image: nats-streaming:0.17.0-linux
restart: always
# ports:
# The standard MQ protocol port
# - 4222:4222
# HTTP management UI
# - 8222:8222
labels:
- "traefik.enable=true"
# - "traefik.frontend.rule=Host:${APP_SITE};PathPrefixStrip:/dev/nats"
- "traefik.frontend.rule=Host:nats.${APP_SITE}"
- "traefik.port=8222"
networks:
- app-network
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8222"]
# interval: 30s
# timeout: 10s
# retries: 5
nats-local:
image: nats-streaming:0.17.0-linux
restart: always
ports:
# The standard MQ protocol port
- 4222:4222
# HTTP management UI
- 8222:8222
networks:
- app-network
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# db service does not used yet
# db:
# image: postgres:11.4
# volumes:
# - /etc/timezone:/etc/timezone:ro
# - /etc/localtime:/etc/localtime:ro
# - ./var/data:/var/lib/postgresql/data/
# - ./sql:/docker-entrypoint-initdb.d/
# ports:
# - 15432:5432
# environment:
# - POSTGRES_DB=${PGDATABASE}
# - POSTGRES_USER=${PGUSER}
# - POSTGRES_PASSWORD=${PGPASSWORD}
# healthcheck:
# test: ["CMD", "pg_isready", "-q", "-U", "${PGUSER}", "-h", "db"]
# interval: 2s
# timeout: 3s
# retries: 10
# stop_grace_period: 5s
# stop_signal: SIGINT
# networks:
# - app-network
networks:
app-network:
external:
name: ${DOCKER_NET}