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
111
112
113
114
115
116
117
118
119
120
# One-command deployment for Hyperlane Quick Start.
#
# The release stack with its paths rebased on the repository root, so
# `docker compose up -d` works from a fresh clone without naming a file. It is the
# same stack as resources/docker/release/server_docker_compose.yml, which keeps
# working unchanged; if the two ever differ, this is the verified copy.
#
# The application image is built from source on first run, which takes roughly 25
# minutes. Pull it instead to skip that:
#
# server:
# image: hkccr.ccs.tencentyun.com/hyperlane-dev/hyperlane-quick-start:1.0.0
#
# That is the master tag; the playground branch publishes
# hyperlane-quick-start-playground:1.0.0.
#
# docker compose up -d
#
# The service is then on http://127.0.0.1:65002.
services:
mysql:
image: mysql:latest
container_name: release_hyperlane_quick_start_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: hyperlane
MYSQL_DATABASE: hyperlane
MYSQL_USER: hyperlane
MYSQL_PASSWORD: hyperlane
expose:
- '3306'
volumes:
- ./data/release/mysql:/var/lib/mysql
networks:
- release_hyperlane_quick_start_network
healthcheck:
test:
interval: 6s
timeout: 1s
retries: 6
start_period: 6s
postgresql:
image: postgres:latest
container_name: release_hyperlane_quick_start_postgresql
restart: always
environment:
POSTGRES_DB: hyperlane
POSTGRES_USER: hyperlane
POSTGRES_PASSWORD: hyperlane
POSTGRES_HOST_AUTH_METHOD: md5
expose:
- '5432'
volumes:
# Mounted at /var/lib/postgresql/data, not /var/lib/postgresql. The parent
# directory is not the PGDATA root, so mounting it leaves the real cluster
# in an anonymous volume and every `docker compose down` discards the data.
- ./data/release/postgres:/var/lib/postgresql/data
networks:
- release_hyperlane_quick_start_network
healthcheck:
test:
interval: 6s
timeout: 1s
retries: 6
start_period: 6s
redis:
image: redis:latest
container_name: release_hyperlane_quick_start_redis
restart: always
command: redis-server --requirepass hyperlane
expose:
- '6379'
volumes:
- ./data/release/redis:/data
networks:
- release_hyperlane_quick_start_network
healthcheck:
test:
interval: 6s
timeout: 1s
retries: 6
start_period: 6s
server:
build:
context: .
dockerfile: ./resources/docker/release/server.dockerfile
container_name: release_hyperlane_quick_start_server
restart: always
ports:
- '65002:65002'
networks:
- release_hyperlane_quick_start_network
depends_on:
mysql:
condition: service_healthy
postgresql:
condition: service_healthy
redis:
condition: service_healthy
networks:
# Declared here rather than marked external: an external network has to exist
# before `docker compose up`, which makes a one-command start a two-step
# ritual and fails outright on a machine that has never run this stack.
release_hyperlane_quick_start_network:
driver: bridge