-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.compose.yml
More file actions
75 lines (70 loc) · 1.76 KB
/
dev.compose.yml
File metadata and controls
75 lines (70 loc) · 1.76 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
services:
ss-frontend:
build:
context: ./frontend/
dockerfile: dev.Dockerfile
container_name: ss-frontend
entrypoint: /frontend/dev.entrypoint.sh
volumes:
- node_modules:/frontend/node_modules
- ./frontend:/frontend
ports:
- "3000:3000"
networks:
- staging
depends_on:
- ss-backend
ss-backend:
build:
context: ./backend/
dockerfile: dev.Dockerfile
container_name: ss-backend
entrypoint: /backend/dev.entrypoint.sh
volumes:
- ./backend:/backend
- static:/backend/static
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8000:8000"
env_file:
- ./backend/.env.dev
networks:
- staging
depends_on:
- ss-db
ss-db:
image: postgres:16-alpine
container_name: ss-db
ports:
- "5432:5432"
environment:
- POSTGRES_USER=studentsync
- POSTGRES_PASSWORD=studentsync
- POSTGRES_DB=studentsync
- PGDATA=/tmp
volumes:
- db_data:/var/lib/postgresql/data
networks:
- staging
ss-redis:
image: redis:latest
container_name: an-redis
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- staging
volumes:
static:
node_modules:
db_data:
redis_data:
networks:
staging:
driver: bridge
ipam:
config:
- subnet: 16.28.0.0/16
gateway: 16.28.0.1