-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml.sample
51 lines (45 loc) · 1.48 KB
/
docker-compose.yml.sample
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
networks:
app-tier:
driver: bridge
services:
app:
image: intriin/mmdl:latest
ports:
- 3000:3000
depends_on:
- db
networks:
- app-tier
restart: always
environment:
DB_HOST: db
env_file:
- .env.local
extra_hosts:
- "host.docker.internal:host-gateway"
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
expose:
- 3306
networks:
- app-tier
environment:
############################################################
## The following variables NEED to be set before execution.
############################################################
#DB_NAME and MYSQL_DATABASE must be the same.
MYSQL_DATABASE: sample_install_mmdm
# This is the user name and password of your mysql user that will be created. These values must be used in DB_USER and DB_PASS variables in the .env file that you will create.
MYSQL_USER: myuser
MYSQL_PASSWORD: mypassword
# This defines the root password of mysql in the container. You can use the root user too.
MYSQL_ROOT_PASSWORD: root
############################################################
## The following variables are advanced settings,
## and must be only changed in case you're trying something
## specific.
############################################################
MYSQL_ALLOW_EMPTY_PASSWORD: ok
MYSQL_ROOT_HOST: '%'