forked from GaetanRole/symfony-lts-docker-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml.dist
51 lines (43 loc) · 1020 Bytes
/
docker-compose.override.yml.dist
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
version: "3.6"
services:
http:
volumes:
- "./app/symfony/public:/srv/app/symfony/public:ro"
ports:
- "8080:80"
web-stack:
volumes:
- "./:/srv"
environment:
- PHP_IDE_CONFIG="serverName=<YOUR_PHPSTORM_SERVER_NAME>"
- XDEBUG_CONFIG="remote_host=<YOUR_HOST_IP>"
database:
volumes:
- "database-volume:/var/lib/mysql:rw"
environment:
- MYSQL_DATABASE=your-database
- MYSQL_USER=your-user
- MYSQL_PASSWORD=your-password
- MYSQL_RANDOM_ROOT_PASSWORD=yes
ports:
- "3306:3306"
# http://localhost:8008/?server=database
adminer:
image: adminer:latest
container_name: starter_adminer
working_dir: /srv
restart: on-failure
ports:
- "8008:8080"
links:
- database
mailcatcher:
image: jeanberu/mailcatcher:latest
container_name: starter_mail_catcher
working_dir: /srv
restart: on-failure
ports:
- "1025:1025"
- "1080:1080"
volumes:
database-volume: {}