-
Notifications
You must be signed in to change notification settings - Fork 168
/
docker-compose.yml
38 lines (37 loc) · 951 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
version: "3.8"
services:
# app:
# image: node
# container_name: linksweb
# restart: on-failure:3
# build: .
# ports:
# - "4000:4000"
# environment:
# - NODE_ENV=development
# - DATABASE_HOST=db
# - DATABASE_USER=fazt
# - DATABASE_PASSWORD=mypassword
# - DATABASE_NAME=linksdb
# volumes:
# - .:/app
# links:
# - db
# depends_on:
# - db
# command: bash -c "npm install && npm run dev"
db:
image: mysql
container_name: linksdb
ports:
- 3306:3306
# logging:
# driver: none
environment:
- MYSQL_DATABASE=linksdb
- MYSQL_USER=fazt
- MYSQL_PASSWORD=mypassword
- MYSQL_ROOT_PASSWORD=mypassword
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./database/db.sql:/docker-entrypoint-initdb.d/db.sql