-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.05 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
version: '3.4'
services:
redis:
image: redis:latest
ports:
- 6379:6379
container_name: project_redis
db:
image: mariadb:latest
ports:
- 3306:3306
environment:
- MARIADB_ROOT_PASSWORD=password
- MARIADB_DATABASE=DM
container_name: project_db
backend:
image: developers_mate_backend
build:
context: ./backend
ports:
- 8000:8000
env_file:
- ./backend/.env
container_name: project_backend
depends_on:
- redis
- db
frontend:
image: developers_mate_frontend
build:
context: ./developers-mate
ports:
- 3000:3000
environment:
- REACT_APP_SERVER_URL=backend:8000
- REACT_APP_WEBSOCKET_URL=backend:8000
volumes:
- react_build:/react/build
container_name: project_frontend
nginx:
image: nginx:latest
ports:
- 80:8080
volumes:
- ./nginx/nginx-setup.conf:/etc/nginx/conf.d/default.conf:ro
- react_build:/var/www/react
depends_on:
- frontend
volumes:
react_build: