-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 996 Bytes
/
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
services:
web:
image: nginx:stable
container_name: growth-mindset-web
volumes:
- ./.docker/conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
ports:
- "80:80"
restart: always
depends_on:
- db
- php
php:
build: .docker/php
container_name: growth-mindset-php
restart: always
depends_on:
- db
env_file:
- ./.docker/conf/php/.env
environment:
PHP_IDE_CONFIG: "serverName=GrowthMindset"
volumes:
- ./.docker/conf/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./.docker/conf/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- .:/var/www/html
db:
image: mysql:latest
container_name: growth-mindset-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- "3306:3306"
volumes:
- .:/app
- growth_mindset_data:/var/lib/mysql
env_file:
- .env
volumes:
growth_mindset_data: {}