-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 953 Bytes
/
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
version: "3.8"
services:
mysql_database:
container_name: mysql
image: mysql:8.0
command: mysqld --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
ports:
- "3306:3306"
volumes:
- ./db/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=music
- TZ=America/Fortaleza
redis_server:
container_name: redis
image: redis:alpine
command: redis-server
restart: always
ports:
- "6379:6379"
app:
image: node:16-alpine
command: sh -c "yarn install && yarn dev"
ports:
- 3005:3005
working_dir: /app
volumes:
- ./:/app
environment:
DB_DATABASE: music
DB_HOST: mysql_database
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: root
REDIS_HOST: redis_server
stdin_open: true
tty: true