-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1002 Bytes
/
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
version: "3.9"
services:
postgresdb:
image: postgres:latest
container_name: postgresdb
networks:
- gokakashi-network
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
POSTGRES_DB: postgres
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 3s
retries: 5
gokakashi-server:
build:
context: .
dockerfile: Dockerfile
container_name: gokakashi-server
command: server --config=/app/lts.yaml
networks:
- gokakashi-network
ports:
- "8000:8000"
- "5555:5555"
volumes:
- ./lts.yaml:/app/lts.yaml
depends_on:
postgresdb:
condition: service_healthy
networks:
gokakashi-network:
name: gokakashi-network
volumes:
pgdata:
workspace:
# ./gokakashi agent start --server=http://localhost:8000 --token=letsdoit --workspace=/tmp