forked from Xinyi-Lai/CS411_Geniuses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·47 lines (44 loc) · 982 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
42
43
44
45
46
47
version: '3'
services:
web:
build:
context: ./
dockerfile: php.Dockerfile
container_name: webserver
depends_on:
- database
volumes:
- ./:/var/www/html/
ports:
- '8084:80' # '80:80' for original docker environment, '8084:80': xinyi's broken mac
networks:
- webnet
database:
image: mysql:8.0
container_name: mysql8
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: Beacon
MYSQL_USER: Geniuses
MYSQL_PASSWORD: cs411
volumes:
- ./dump:/docker-entrypoint-initdb.d
networks:
- webnet
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- database
ports:
- 8000:80
environment:
PMA_HOST: database
MYSQL_USER: Geniuses
MYSQL_PASSWORD: cs411
MYSQL_ROOT_PASSWORD: root
networks:
- webnet
networks:
webnet: