-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.09 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
56
57
58
version: '3.8'
services:
backend:
build: ./backend
command: 'python manage.py runserver 0.0.0.0:8000'
ports:
- 8000:8000
volumes:
- ./backend:/app
depends_on:
- db
db:
image: mysql:5.7.22
restart: always
environment:
MYSQL_DATABASE: admin
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
volumes:
- dbdata:/var/lib/mysql
ports:
- 33066:3306
adminer:
image: adminer
restart: always
ports:
- 9000:8080
environment:
ADMINER_PLUGINS: tables-filter tinymce table-structure table-indexes-structure json-column edit-calendar edit-foreign enum-types enum-option edit-textarea
frontend:
stdin_open: true
build: ./frontend
volumes:
- ./frontend:/usr/src/app
expose:
- 81
- 3000
environment:
- NODE_ENV=development
depends_on:
- backend
reverse_proxy:
build: ./nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 81:80
depends_on:
- backend
- frontend
volumes:
dbdata: