/
docker-compose.yml
56 lines (52 loc) · 1.1 KB
/
docker-compose.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
ps-mysql:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: planetscale
MYSQL_ROOT_HOST: "%"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
command:
[
"--max_connections=10000",
"--default-authentication-plugin=mysql_native_password",
]
ports:
- 3306:3306
volumes:
- ps-mysql:/var/lib/mysql
cache-redis:
container_name: ao-cache-redis
image: redis:alpine3.17
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass redis
expose:
- 6379
ports:
- 6379:6379
deploy:
resources:
limits:
cpus: '0.50'
memory: 50M
reservations:
cpus: '0.25'
memory: 20M
planetscale-proxy:
image: ghcr.io/mattrobenolt/ps-http-sim:v0.0.7
command:
[
"-mysql-no-pass",
"-listen-port=3900",
"-mysql-dbname=planetscale",
"-mysql-addr=ps-mysql",
]
depends_on:
- ps-mysql
ports:
- 3900:3900
links:
- ps-mysql
volumes:
ps-mysql: