-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.05 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
version: '3'
services:
postgres:
image: postgres:15.3
restart: always
environment:
POSTGRES_USER: watcher
POSTGRES_PASSWORD: watcher
POSTGRES_DB: watcher
volumes:
- ./db/data:/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
image: golang:1.20-alpine3.16
volumes:
- .:/app
working_dir: /app
command: go run ./cmd/argo-watcher -server
environment:
STATE_TYPE: postgres
ARGO_URL: http://mock:8081
ARGO_TOKEN: example
ARGO_TIMEOUT: 120
DB_HOST: postgres
DB_USER: watcher
DB_NAME: watcher
DB_PASSWORD: watcher
depends_on:
- postgres
- mock
ports:
- "8080:8080"
frontend:
image: node:17.7-alpine3.15
volumes:
- ./web:/app
working_dir: /app
command: npm start
environment:
PROXY: http://backend:8080
ports:
- "3000:3000"
mock:
image: golang:1.20-alpine3.16
volumes:
- .:/app
working_dir: /app
command: go run ./cmd/mock
ports:
- "8081:8081"