-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
80 lines (74 loc) · 1.72 KB
/
compose.yml
File metadata and controls
80 lines (74 loc) · 1.72 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: vd-designer
services:
app:
container_name: app
image: ghcr.io/aidbox/vd-designer:latest
restart: unless-stopped
pull_policy: always
env_file:
- .env
environment:
- POSTGRES_HOST=postgres-db
- POSTGRES_PORT=5432
ports:
- "8280:8080"
networks:
- vd-network
depends_on:
database:
condition: service_healthy
links:
- database
profiles:
- dev
database:
container_name: postgres-db
image: postgres:16
restart: unless-stopped
volumes:
- vdd-data:/var/lib/postgresql/data/
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
healthcheck:
test: pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}
interval: 2s
timeout: 10s
retries: 5
ports:
- "${POSTGRES_PORT}:5432"
networks:
- vd-network
profiles:
- dev
- local
test-db:
container_name: test-db
build:
context: .
dockerfile: ./docker/test_db.dockerfile
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
# NOTE: this ports are exposed because each time we create a temp db a new
# port should be used; this way we provide a range to secure our tests
# ! IMPORTANT: this range specified in docker/test-db/getsocket.c as well
ports:
- "14500-15000:14500-15000"
profiles:
- local
- tests
watchtower:
image: containrrr/watchtower
restart: unless-stopped
command: --schedule "0 */5 * * * *"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
profiles:
- dev
volumes:
vdd-data: {}
networks:
vd-network: {}