forked from pmsgrj/desafio-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (47 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
48 lines (47 loc) · 1.22 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
version: '2'
services:
nginx:
image: nginx
ports:
- "80:80"
links:
- php
volumes:
- "./:/var/www"
- "./docker/config/nginx/vhost/sf4_vhost:/etc/nginx/conf.d/030-sf4.conf:ro"
php:
build:
context: ./docker
args:
- http_proxy=${PROXY}
- https_proxy=${PROXY}
environment:
- http_proxy=${PROXY}
- https_proxy=${PROXY}
links:
- db
volumes:
- "./docker/config/php/php.ini:/usr/local/etc/php/conf.d/030-custom.ini:ro"
- "./:/var/www"
ports:
- "9001:9000"
environment:
- APP_ENV=${APP_ENV}
- APP_DEBUG=1
- APP_SECRET=${APP_SECRET}
- DATABASE_URL=${DATABASE_URL}
- GOOGLE_MAPS_URL=${GOOGLE_MAPS_URL}
- GOOGLE_MAPS_KEY=${GOOGLE_MAPS_KEY}
working_dir: "/var/www"
db:
image: mysql:5.7
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "3306:3306"
volumes:
- "./.data/db:/var/lib/mysql"
environment:
- "MYSQL_ROOT_PASSWORD=rootPass"
- "MYSQL_USER=appuser"
- "MYSQL_PASSWORD=userPass"
- "MYSQL_DATABASE=app"