-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
44 lines (41 loc) · 974 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
44
services:
rollun-datastore-nginx:
build:
context: docker/nginx
dockerfile: Dockerfile
volumes:
- ./:/var/www/app
ports:
- 8080:80
depends_on:
- rollun-datastore-php-fpm
rollun-datastore-php-fpm:
build:
context: docker/
dockerfile: php-fpm/Dockerfile
volumes:
- ./:/var/www/app
environment:
PHP_IDE_CONFIG: serverName=rollun-datastore
DB_NAME: app
DB_USER: app
DB_PASS: secret
DB_HOST: rollun-datastore-mysql
DB_PORT: 3306
TEST_HOST: http://rollun-datastore-nginx/
depends_on:
- rollun-datastore-mysql
rollun-datastore-mysql:
image: mysql:8.2
command: mysqld --default-authentication-plugin=mysql_native_password
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_USER: app
MYSQL_PASSWORD: secret
MYSQL_DATABASE: app
ports:
- 33061:3306
volumes:
mysql: