-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (51 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
58 lines (51 loc) · 1.26 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
version: '3.3'
services:
skitai:
image: skitai-dev
container_name: skitai-dev
build:
context: .
dockerfile: Dockerfile
environment:
MYDB: "skitai:12345678@postgres/skitai"
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
user: ubuntu
ports:
- "5000:5000"
- "5001:5001"
volumes:
- ${HOME}/hansroh:${HOME}
stdin_open: true
tty: true
entrypoint:
- /bin/bash
postgres:
image: postgres:13-alpine
container_name: skitai-postgres
restart: always
environment:
POSTGRES_DB: "skitai"
POSTGRES_USER: "skitai"
POSTGRES_PASSWORD: "12345678"
volumes:
- pgdata:/var/lib/postgresql/data
h2load:
image: hansroh/h2load
container_name: h2load
stdin_open: true
tty: true
entrypoint:
- /bin/sh
networks:
skitai:
volumes:
pgdata:
# AFTER CONTAINER CREATED
# -----------------------------------------------------
# docker attach skitai-dev
# cd tools/dev-docker
# ./init-db.sh # if pgdata volumes is newly created
# ./install-libs.sh # if .local/lib/pythonx has problem
# docker attach skitai-h2load
# h2load --h1 -n 10000 -t 20 -c 1024 http://skitai:5000/bench/async
# h2load --h1 -n 10000 -t 20 -c 1024 http://skitai:5000/bench