-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
85 lines (84 loc) · 1.89 KB
/
compose.dev.yaml
File metadata and controls
85 lines (84 loc) · 1.89 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
81
82
83
84
85
services:
postgres:
image: postgres:15
container_name: postgres
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PG_ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PG_ADMIN_PASSWORD}
ports:
- "8080:80"
depends_on:
- postgres
redis:
image: redis:7
container_name: redis
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: backend
restart: always
env_file:
- ./backend/.env
ports:
- "${PORT:-4200}:${PORT:-4200}"
develop:
watch:
- action: sync
path: ./backend
target: /app
ignore:
- ./backend/node_modules/
- path: ./backend/package.json
action: rebuild
- path: ./backend/.env
action: rebuild
- path: ./backend/tsconfig.json
action: rebuild
- path: ./backend/tsconfig.build.json
action: rebuild
depends_on:
- postgres
- redis
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
target: dev
env_file:
- ./frontend/.env
ports:
- "3000:3000"
depends_on:
- backend
develop:
watch:
- action: sync
path: ./frontend
target: /app
ignore:
- ./frontend/node_modules/
- action: rebuild
path: ./frontend/package.json
volumes:
postgres_data:
redis_data: