forked from nowiko/AliceBundle
-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
docker-compose.yaml
30 lines (28 loc) · 870 Bytes
/
docker-compose.yaml
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
version: '3.1'
# To keep in sync with .gitHub/workflows/tests.yaml
services:
php:
build: .
volumes:
- .:/app
- ./.cache/composer:/tmp/composer/cache:delegated
working_dir: /app
environment:
- DATABASE_URL=mysql://root:password@mysql/hautelook_alice_bundle
profiles:
- php
user: ${USER_ID:-1000}
network_mode: host
mysql:
image: mysql:8.0
platform: linux/amd64
ports:
- 3307:3306
environment:
# To keep in sync with fixtures/Functional/config/doctrine.yml and .github/workflows/ci.yaml
MYSQL_DATABASE: hautelook_alice_bundle
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: password
# Store data in memory to improve speed
tmpfs:
- /var/lib/mysql