-
Notifications
You must be signed in to change notification settings - Fork 71
/
docker-compose.yml
51 lines (49 loc) · 1.18 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
47
48
49
50
51
version: '3'
volumes:
db-data:
services:
nginx:
image: nginx:latest
volumes:
- ./docker-data/nginx/nginx.conf:/etc/nginx/nginx.conf
#- ./docker-data/nginx/ssl/bikesharing.loc.crt:/etc/nginx/certs/bikesharing.loc.crt
#- ./docker-data/nginx/ssl/bikesharing.loc.key:/etc/nginx/certs/bikesharing.loc.key
ports:
- 80:80
#- 443:443
links:
- web
db:
image: mysql:5
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: bikesharing
MYSQL_USER: bikesharing
MYSQL_PASSWORD: password
volumes:
- ./docker-data/mysql:/docker-entrypoint-initdb.d
- ./db-data:/var/lib/mysql
web:
build: .
ports:
- "8100:80"
volumes:
- ./:/var/www/html/
- ./docker-data/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./docker-data/php/override.ini:/usr/local/etc/php/conf.d/override.ini
depends_on:
- db
extra_hosts:
- host.docker.internal:host-gateway
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db
ports:
- 81:80
environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=password