-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (64 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
66 lines (64 loc) · 1.23 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
version: "3"
services:
database:
container_name: database
image: mysql:5.7.22
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- mysql-data:/var/lib/mysql
networks:
- core
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_ARBITRARY=1
networks:
- core
backend:
build:
context: ./backend
container_name: backend
volumes:
- ./backend/:/var/www
- /backend/node_modules
networks:
- core
ports:
- 3000:3000
redis-bull:
container_name: redis-bull
image: redis:6.2-alpine
restart: always
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
volumes:
- bull-queue:/data
networks:
- core
frontend:
container_name: frontend
build:
context: ./frontend
volumes:
- ./frontend/:/usr/src/app
ports:
- 3001:3001
networks:
core:
driver: bridge
volumes:
mysql-data:
driver: local
bull-queue:
driver: local