-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.25 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
50
version: '3.8'
# See the .env file for ENV_* variable values
services:
# MySQL DB Container
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --lower_case_table_names=1
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${ENV_MYSQL_ROOT_PASS?}
- MYSQL_DATABASE=${ENV_MYSQL_DB?}
- MYSQL_USER=${ENV_MYSQL_USER?}
- MYSQL_PASSWORD=${ENV_MYSQL_PASS?}
ports:
- '3306:3306'
volumes:
- mysql-data:/var/lib/mysql
# PHPMyAdmin access to the MySQL DB
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
# Setting these enable auto login,
# however its flaky and also a security risk if this is accidentally made public
# PMA_USER: root
# PMA_PASS: ${ENV_MYSQL_ROOT_PASS?}
restart: always
ports:
- 8081:80
# This container is not running by default, but it is used to run commands and adhoc servers.
# NOTE - Port mapping is handled dynamically in the ./run script
runner:
image: node:16
links:
- mysql
#restart: unless-stopped
working_dir: /usr/src/app
volumes:
- ./:/usr/src/app
volumes:
mysql-data: