-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
76 lines (70 loc) · 1.66 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
services:
weblingservice:
build:
context: .
dockerfile: .docker/Dockerfile
ports:
- '8000:80'
volumes:
- .:/var/www/html
- .docker/php.ini:/usr/local/etc/php/php.ini
- .docker/apache-vhost.conf:/etc/apache2/sites-available/custom-vhost.conf
container_name: wsapp
environment:
DB_HOST: mysql
DB_DATABASE: laravel
DB_USERNAME: laravel
DB_PASSWORD: laravel
DB_PORT: 3306
# play with mailhog
MAIL_HOST: mailhog
MAIL_PORT: 1025
MAIL_USERNAME: null
MAIL_PASSWORD: null
MAIL_ENCRYPTION: null
depends_on:
- mysql
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- gruene-services-bridge-network
mysql:
image: mysql:5.7
ports:
- '3307:3306'
volumes:
- database:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
container_name: wsmysql_webling
networks:
- gruene-services-bridge-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- '8010:80'
environment:
MYSQL_ROOT_PASSWORD: root
PMA_HOST: mysql
PMA_PORT: '3306'
PMA_USER: laravel
PMA_PASSWORD: laravel
container_name: wsphpmyadmin_webling
networks:
- gruene-services-bridge-network
mailhog:
image: mailhog/mailhog
ports:
- '8020:8025'
container_name: wsmailhog_webling
networks:
- gruene-services-bridge-network
volumes:
database:
networks:
gruene-services-bridge-network:
external: true