-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (34 loc) · 965 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
version: '3'
services:
nginx:
container_name: tva-nginx
build: ./docker/nginx
depends_on:
- php-fpm
ports:
- 8080:80
volumes:
- "./:/var/www/tv-archive"
- "./docker/nginx/config/conf.d/default.conf:/etc/nginx/conf.d/default.conf"
php-fpm:
container_name: tva-php-fpm
build: ./docker/php-fpm
user: www-data
depends_on:
- mysql
volumes:
- "./:/var/www/tv-archive:rw"
entrypoint:
- /bin/sh
- -c
command:
- composer install && ./vendor/bin/phalcon.php migration run && php-fpm
mysql:
container_name: tva-mysql
build: ./docker/mysql
volumes:
- "./docker/mysql/data:/var/lib/mysql"
environment:
- MYSQL_DATABASE=tv-archive
- MYSQL_USER=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes