-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.18 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
version: "3.8"
services:
db:
container_name: postgres_container
image: pgvector/pgvector:pg16
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: test_db
ports:
- "5432:5432"
volumes:
- ./init-db:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
redis:
container_name: redis_container
image: redis:6.2
restart: always
ports:
- "6379:6379"
app:
container_name: express_app
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
- redis
environment:
PORT: 8080
DATABASE_URL: postgres://root:root@db:5432/test_db
REDIS_URL: redis://redis:6379
DB_USER: root
DB_PASSWORD: root
DB_HOST: db
DB_PORT: 5432
REDIS_PORT: 6379
REDIS_HOST: redis
DB_NAME: test_db
volumes:
- .:/app
volumes:
pgdata:
init-data: