-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.18 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.1'
services:
# Application container
contest:
image: xdebug-web
build:
context: .
dockerfile: ./build/docker/Dockerfile
container_name: container-xdebug
env_file: ./build/docker/env
#command: npm run build:productionDeployment
ports:
- "80:80"
expose:
- "9000"
volumes:
- .:/var/www/html:rw
- modules_node:/var/www/html/node_modules
- modules_composer:/var/www/html/vendor
- modules_bower:/var/www/html/public/js/bower_component
#- ./build/docker/php.ini:/usr/local/etc/php/php.ini
#- ./build/docker/xdebug.ini:/usr/local/etc/php/xdebug.ini
#- ./build/docker/apache-vhost.conf:/etc/apache2/sites-available/000-default.conf
depends_on:
- mysql
# Database container incl. init script for local development
mysql:
image: mysql:5.7.18
ports:
- "3306:3306"
restart: always
volumes:
- mysql-data:/var/lib/mysql
- ./build/mysql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: contest
volumes:
mysql-data:
modules_node:
modules_composer:
modules_bower:
#secrets:
# psql-pw:
# external: true