-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.19 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
version: "3.8"
services:
lams:
build:
context: ./
dockerfile: Dockerfile
ports:
- 80:9080
- 9001:9001
- 9990:9990
volumes:
- ./src:/app/lams
# - ./:/app2
env_file: .env
# image: schgr/lams
depends_on:
- mysql
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ../data/lams/mysql:/var/lib/mysql
- ./docker/mysql_seed_data:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: verysecret
MYSQL_DATABASE: lams
MYSQL_USER: lams
MYSQL_PASSWORD: verysecret
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- mysql
ports:
- 8181:80
environment:
PMA_HOST: 'mysql'
MYSQL_USERNAME: root
phpmyadmin_production:
image: phpmyadmin/phpmyadmin
ports:
- 8182:80
environment:
PMA_HOST: 'host.docker.internal'
PMA_PORT: '3306'
MYSQL_USERNAME: root