-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 947 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
43
version: '2'
services:
php:
build: .
container_name: amoretti-php
depends_on:
- mysql
environment:
SYMFONY_PHPUNIT_VERSION: '9'
COMPOSER_ALLOW_SUPERUSER: 1
DB_PASSWORD: 1234
DB_USER: exadsdb
DB_NAME: exads
DB_HOST: mysql
DB_PORT: 3306
working_dir: /var/www/html
volumes:
- .:/var/www/html:rw
mysql:
image: mysql:5.7
container_name: amoretti-db
environment:
- MYSQL_PASSWORD=1234
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_USER=exadsdb
- MYSQL_DATABASE=exads
- MYSQL_HOST_IP=0.0.0.0
ports:
- 3206:3306
volumes:
- ./src/Database/Resources/database.sql:/docker-entrypoint-initdb.d/exads_test.sql
nginx:
image: nginx:1.17
container_name: amoretti-server
depends_on:
- php
ports:
- 8090:80
volumes:
- .:/var/www/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro