forked from codemix/yii2-dockerized
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-example.yml
34 lines (28 loc) · 1017 Bytes
/
docker-compose-example.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
version: '3'
services:
web:
build: ./
# During development we map local files into the container
volumes:
# Map current working copy into the container
- ./:/var/www/html/
# Uncomment to use dev specific Apache or PHP configurations
#- ./config/apache/local.conf:/etc/apache2/apache2.conf
#- ./config/php/local.ini:/usr/local/etc/php/conf.d/local.ini
# Uncomment to use the local vendor directory, e.g. for debugging.
# This requires that you have copied the directory to your host with
# docker-compose run --rm web cp -ra /var/www/vendor .
#- ./vendor:/var/www/vendor
links:
- db
environment:
ENABLE_ENV_FILE: 1
ports:
- "8080:80"
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web