-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
executable file
·57 lines (53 loc) · 1.63 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.7"
services:
mariadb:
image: mariadb:10.3
container_name: docker-thelia-mariadb
working_dir: /application
volumes:
- .:/application
- .docker/mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
ports:
- "8086:3306"
webserver:
image: nginx:alpine
container_name: docker-thelia-webserver
working_dir: /application
volumes:
- .:/application
- .docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
php-fpm:
build: .docker/php-fpm
container_name: docker-thelia-php-fpm
working_dir: /application
volumes:
- .:/application
- .docker/php-fpm/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
environment:
- PHP_IDE_CONFIG
- XDEBUG_CONFIG
- ACTIVE_FRONT_TEMPLATE
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
encore:
build:
context: ./templates/frontOffice/${ACTIVE_FRONT_TEMPLATE:-modern}
target: thelia_encore
container_name: docker-thelia-encore
working_dir: /application/templates/frontOffice/${ACTIVE_FRONT_TEMPLATE:-modern}
environment:
BROWSERSYNC_PROXY: http://localhost:8081
volumes:
- ./templates/frontOffice/${ACTIVE_FRONT_TEMPLATE:-modern}:/application/templates/frontOffice/${ACTIVE_FRONT_TEMPLATE:-modern}:delegated
- ./templates/frontOffice/${ACTIVE_FRONT_TEMPLATE:-modern}/node_modules:/application/templates/frontOffice/${ACTIVE_FRONT_TEMPLATE:-modern}/node_modules
ports:
- 8081:8081