-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.override.yaml
89 lines (83 loc) · 1.93 KB
/
docker-compose.override.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
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
version: "3.8"
services:
valet:
build:
context: ./
dockerfile: ./Dockerfile
target: build
command:
- "/bin/sh"
- "-c"
- "go mod download && make build-linux && /valet/valetd"
environment:
- MYSQL_DSN=root:password@tcp(mysql:3306)/valetdb?parseTime=true
- RABBITMQ_URI=amqp://quest:password@rabbitmq:5672/
- REDIS_URL=redis://redis
- POSTGRES_DSN=postgres://postgres:postgres@postgres:5432/valetdb?sslmode=disable
depends_on:
- mysql
- postgres
- rabbitmq
- redis
volumes:
- ./:/valet/
ports:
# HTTP port
- 8080:8080
# gRPC port
- 50051:50051
mysql:
image: mysql:8
command: mysqld --authentication-policy=mysql_native_password
restart: always
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=valetdb
- MYSQL_ROOT_USER=root
- MYSQL_ROOT_PASSWORD=password
volumes:
- mysql-data:/var/lib/mysql/
rabbitmq:
image: rabbitmq:3.9-management-alpine
ports:
# AMQP protocol port
- 5672:5672
# HTTP management UI
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=quest
- RABBITMQ_DEFAULT_PASS=password
volumes:
- rabbitmq-data:/var/lib/rabbitmq/
- rabbitmq-log:/var/log/rabbitmq
redis:
image: redis:3.2-alpine
command:
- redis-server
- --appendonly yes
ports:
- 6379:6379
volumes:
- redis-data:/data
postgres:
image: postgres:14.1-alpine
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 10s
retries: 3
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
mysql-data:
rabbitmq-data:
rabbitmq-log:
redis-data:
postgres-data: