-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
60 lines (54 loc) · 1.13 KB
/
compose.yaml
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
version: '3'
services:
appserver:
build:
context: '.'
dockerfile: dockerfiles/appserver
target: appserver_dev
networks:
- allhosts
volumes:
- ./appserver:/appserver
working_dir: /appserver
command: yarn dev
env_file: .env.local
environment:
PORT: 3000
DATABASE_URL: "postgresql://devuser:devdummypass@pgserver:5432/devdb"
ports:
- "3000:3000"
depends_on:
pgserver:
condition: service_healthy
pgserver:
image: pgvector/pgvector:pg14
networks:
- allhosts
environment:
POSTGRES_USER: devuser
POSTGRES_DB: devdb
POSTGRES_PASSWORD: devdummypass
ports:
- '5432'
volumes:
- dbdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U devuser -d devdb"]
interval: 4s
timeout: 4s
retries: 20
mitmweb:
build:
context: '.'
dockerfile: dockerfiles/mitmweb
ports:
- "8080:8080"
- "8081:8081"
environment:
UPSTREAM: http://appserver:3000/
networks:
- allhosts
networks:
allhosts:
volumes:
dbdata: