-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
72 lines (63 loc) · 1.44 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#version: "2"
#services:
# app:
# build: ./src_vue
# links:
# - db
# ports:
# - "80:80"
# db:
# image: mariadb:10.4.6
# volumes:
# - ./db/dump.sql:/docker-entrypoint-initdb.d/dump.sql
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: scot
# MYSQL_USER: user
# MYSQL_PASSWORD: password
#//user:password@db/scot
version: "2.1"
networks:
scot-net:
services:
app:
build: ./src_vue
volumes:
- .:/src_vue
links:
- db
ports:
- "10017:80"
networks:
scot-net:
#depends_on:
# - db_setup
#db_setup:
# build: ./src_build_database
# volumes:
# - ./db/gbooks_datahub/:/make_db/data
# depends_on:
# db:
# condition: service_healthy
# networks:
# scot-net:
db:
image: mariadb:10.4.6
volumes:
# database
#- ${PWD}/db/dump.sql:/docker-entrypoint-initdb.d/dump.sql
- ${PWD}/db/dev_data:/var/lib/mysql
- ${PWD}/db/moreWordsforAlex:/var/lib/mysql-files
# "database" : "mysql://user:password@db/scot" / local: "mysql://[email protected]/scot"(config.json)
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: scot
MYSQL_USER: user
MYSQL_PASSWORD: password
#healthcheck:
# test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-ppassword", "-uuser"]
# interval: 120s
# timeout: 20s
# retries: 40
networks:
scot-net: