forked from amurzaliev/sf4-multi-tenancy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (46 loc) · 1.15 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
version: '3.6'
services:
web:
image: josefjebavy/debian-apache-php7.3-symfony
container_name: sf-multitenancy_web
volumes:
- .:/var/www/html
working_dir: /var/www/html
networks:
- sf-multitenancy-network
ports:
- 7080:80
database:
image: mariadb:10.3
container_name: sf-multitenancy_database
environment:
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_DATABASE=sf-multitenancy
- MYSQL_INITDB_SKIP_TZINFO=1 # toto vyreni prni start
- MYSQL_USER=user
- MYSQL_PASSWORD=secret
volumes:
- ./docker/development/database:/docker-entrypoint-initdb.d/
networks:
- sf-multitenancy-network
phpmyadmin:
depends_on:
- database
image: phpmyadmin/phpmyadmin
# restart: always
ports:
- '7083:80'
environment:
PMA_HOST: database
MYSQL_ROOT_PASSWORD: pass
networks:
- sf-multitenancy-network
composer:
image: composer:latest
volumes:
- ./:/app
working_dir: /app
command: composer install --ignore-platform-reqs
networks:
sf-multitenancy-network:
driver: bridge