-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (48 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
49 lines (48 loc) · 1.13 KB
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
version: '3.5'
services:
e-learning-api:
depends_on:
- e-learning-db
# - e-learning-queue
build:
context: '.'
dockerfile: 'Dockerfile.dev'
container_name: e-learning-api
restart: always
environment:
# - QUEUE_CONNECTION=redis
# - REDIS_HOST=e-learning-queue
# - REDIS_PORT=6379
- DB_HOST=e-learning-db
- DB_PORT=3306
- DB_DATABASE=e-learning
- DB_USERNAME=root
- DB_PASSWORD=secret
volumes:
- ./:/var/www
ports:
- 9500:80
e-learning-db:
image: mysql:5.7
restart: always
command: --init-file /data/application/init.sql
volumes:
- ./dockerdb.sql:/data/application/init.sql
- ./.dbdata:/var/lib/mysql
environment:
- MYSQL_USER=root
- MYSQL_PASSWORD=secret
- MYSQL_ROOT_PASSWORD=secret
e-learning-phpmyadmin:
depends_on:
- e-learning-db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '9506:80'
environment:
PMA_HOST: e-learning-db
MYSQL_ROOT_PASSWORD: secret
# e-learning-queue:
# image: redis
# restart: always