-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
82 lines (75 loc) · 1.89 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.1"
services:
redis:
image: redis:alpine
container_name: beerplop-redis
ports:
- "8083:6379"
mysql:
image: mysql:8.0
command: '--default-authentication-plugin=mysql_native_password'
container_name: beerplop-mysql
restart: always
volumes:
- ./vendor/wol-soft/wol-soft-core/mysql/schema.sql:/docker-entrypoint-initdb.d/01-schema-core.sql
- ./mysql/schema.sql:/docker-entrypoint-initdb.d/02-schema.sql
- ./mysql/rights.sql:/docker-entrypoint-initdb.d/03-rights.sql
environment:
- MYSQL_ROOT_PASSWORD=beerplopRoot
- MYSQL_DATABASE=beerplop
- MYSQL_USER=beerplop
- MYSQL_PASSWORD=beerplop
ports:
- "8082:3306"
# node:
# image: node:12
# container_name: beerplop-node
# depends_on:
# - redis
# volumes:
# - .:/var/www/beerplop/
# working_dir: /var/www/beerplop/
# command: node index.js
# restart: on-failure
# ports:
# - "8081:81"
php:
build:
context: '.'
dockerfile: './docker/Dockerfile_php'
depends_on:
- mysql
- redis
volumes:
- .:/var/www/beerplop/
container_name: beerplop-php
apache:
build:
context: '.'
dockerfile: './docker/Dockerfile_apache'
depends_on:
- php
ports:
- "8080:80"
volumes:
- .:/var/www/beerplop/
container_name: beerplop-apache
# js build container
# grunt:
# build:
# context: '.'
# dockerfile: './docker/Dockerfile_grunt'
# container_name: beerplop-grunt
# volumes:
# - .:/var/www/beerplop/
# working_dir: /var/www/beerplop/
# restart: on-failure
# command: bash -c "npm ci -verbose && grunt start"
# install php dependencies via composer
composer:
image: composer:1.9
container_name: beerplop-composer
volumes:
- .:/var/www/beerplop/
working_dir: /var/www/beerplop/
command: composer install