-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
41 lines (34 loc) · 987 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
40
41
#zf190730.1446
#cp190717.1632
#source: https://stackoverflow.com/questions/39204142/docker-compose-with-multiple-databases
version: '3.3'
volumes:
db:
driver: local
services:
db:
image: mysql:5.7
container_name: mysql
# image: mariadb
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./docker/provision/mysql/init:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: root!
# MYSQL_DATABASE: db1
# MYSQL_USER: userdb1
# MYSQL_PASSWORD: userdb1!
ports:
- "3306:3306"
nas:
image: itsthenetwork/nfs-server-alpine:latest
container_name: nas
volumes:
- ./nfs_share:/nfsshare
restart: always
environment:
SHARED_DIRECTORY: /nfsshare
ports:
- "2049:2049"
privileged: true