-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (67 loc) · 1.58 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
57
58
59
60
61
62
63
64
65
66
67
services:
postgres:
image: postgres:15.3
restart: always
environment:
POSTGRES_USER: watcher
POSTGRES_PASSWORD: watcher
POSTGRES_DB: watcher
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U watcher" ]
interval: 30s
timeout: 30s
retries: 3
volumes:
- ./db/data:/var/lib/postgresql/data
ports:
- "5432:5432"
migrations:
image: migrate/migrate:v4.17.0
command: -path=/migrations/ -database postgres://watcher:watcher@postgres:5432/watcher?sslmode=disable up
volumes:
- ./db/migrations:/migrations
depends_on:
postgres:
condition: service_healthy
backend:
image: golang:1.23-alpine3.20
volumes:
- .:/app
working_dir: /app
command: go run ./cmd/argo-watcher -server
environment:
STATE_TYPE: postgres
ARGO_URL: http://mock:8081
ARGO_TOKEN: example
DEPLOYMENT_TIMEOUT: 120
DB_HOST: postgres
DB_PORT: 5432
DB_USER: watcher
DB_NAME: watcher
DB_PASSWORD: watcher
DB_MIGRATIONS_PATH: /app/db/migrations
LOG_LEVEL: debug
DEV_ENVIRONMENT: true
depends_on:
migrations:
condition: service_completed_successfully
ports:
- "8080:8080"
frontend:
image: node:22-alpine3.19
volumes:
- ./web:/app
working_dir: /app
command: npm start
environment:
PROXY: http://backend:8080
ports:
- "3000:3000"
mock:
image: golang:1.23-alpine3.20
volumes:
- .:/app
working_dir: /app
command: go run ./cmd/mock
ports:
- "8081:8081"