-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 930 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
version: '3'
services:
mysql:
# image: mariadb:10.3
# container_name: mariadb
# volumes:
# - container-volume:/var/lib/mysql
# - ./src/db/secret_demon.sql
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: security_challenge
# ports:
# - "3306:3306"
# restart: always
image: mysql:8.0
container_name: mysql-server-80
command: --default-authentication-plugin=mysql_native_password
# working_dir: /application
volumes:
- .:/application
- ./src/db/secret_demon.sql:/docker-entrypoint-initdb.d/
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=security_challenge
ports:
- "3306:3306"
website:
container_name: php72
build:
context: ./
volumes:
- ./src:/var/www/html
ports:
- 8000:80
depends_on:
- mysql
volumes:
container-volume: