-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 914 Bytes
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
version: "3.9"
services:
frontend:
build: ./frontend
ports:
- "80:80"
environment:
- VITE_API_URL=http://localhost:3000
depends_on:
- api
api:
build: ./backend
ports:
- "3000:3000"
env_file:
- ./backend/.env
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/catalogx
- REDIS_URL=redis://postgres@redis:6379
- PORT=3000
depends_on:
- postgres
- redis
postgres:
image: postgres:15
environment:
POSTGRES_DB: catalogx
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
redis:
image: redis:7
ports:
- "6379:6379"
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@catalogx.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- postgres