-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 1.07 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
# docker-compose.yml
version: '2'
services:
db:
image: mysql
ports:
- 3306:3306
volumes:
- "./data/mysql:/var/lib/mysql"
env_file:
- docker/mysql/mysql.env
container_name: calendmap-mysql
php:
build: docker/php7-fpm
ports:
- 9000:9000
env_file:
- docker/mysql/mysql.env
links:
- db:mysqldbcontainer
volumes:
- "./app:/var/www/symfony/app"
container_name: calendmap-php
nginx:
build: docker/nginx
ports:
- 80:80
links:
- php
volumes_from:
- php
volumes:
- "./var/log/nginx:/var/log/nginx"
container_name: calendmap-nginx
# Base NPM container that will be reuse to run NPM components such as webpack and vue.js (see next)
base_npm:
build: docker/npm
environment:
- NODE_ENV=dev
volumes:
- "./app:/var/www/symfony/app:rw"
container_name: calendmap-npm