-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
139 lines (129 loc) · 2.74 KB
/
Copy pathcompose.yaml
File metadata and controls
139 lines (129 loc) · 2.74 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '3.9'
networks:
student-accommodation:
driver: bridge
services:
client:
container_name: client
image: sirsanctified/roomio-client:latest
build: ./client
ports:
- "3000:3000"
env_file:
- ./client/.env
networks:
- student-accommodation
depends_on:
- api
develop:
watch:
- path: ./client
action: sync
target: /app
ignore:
- node_modules/
- path: ./client/package.json
action: rebuild
- path: ./client/package-lock.json
action: sync
api:
container_name: api
image: sirsanctified/roomio-api:latest
build:
context: .
dockerfile: ./backend/docker/django/server.dockerfile
command: ./start.sh
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
networks:
- student-accommodation
env_file:
- ./backend/.env
depends_on:
- db
- redis
develop:
watch:
- path: ./backend
action: rebuild
target: /accounts
ignore:
- venv/
- path: ./backend
action: rebuild
target: /core
ignore:
- venv/
- path: ./backend
action: rebuild
target: /student_accommodation
ignore:
- venv/
- path: ./backend/requirement.txt
action: rebuild
db:
container_name: db
image: postgres
ports:
- "6543:5432"
networks:
- student-accommodation
env_file:
- ./backend/.env
volumes:
- pg_data:/var/lib/postgresql/
redis:
container_name: redis
image: redis:7.2.4-alpine
ports:
- "6379:6379"
networks:
- student-accommodation
celery_worker:
container_name: celery_worker
build:
context: .
dockerfile: ./backend/docker/django/server.dockerfile
command: ./start-celeryworker.sh
networks:
- student-accommodation
env_file:
- ./backend/.env
depends_on:
- db
- redis
flower:
container_name: flower
build:
context: .
dockerfile: ./backend/docker/django/server.dockerfile
command: ./start-flower.sh
ports:
- "5555:5555"
networks:
- student-accommodation
env_file:
- ./backend/.env
depends_on:
- redis
- db
nginx:
restart: always
container_name: nginx
build:
context: ./backend/docker/nginx
dockerfile: nginx.dockerfile
ports:
- "8080:80"
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
networks:
- student-accommodation
depends_on:
- api
volumes:
pg_data:
static_volume:
media_volume: