-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 1.05 KB
/
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: "3"
services:
db:
image: mysql:5.7
container_name: w3development-db
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: db
MYSQL_USER: typo3
MYSQL_PASSWORD: typo3pass
ports:
- "33061:3306"
volumes:
- ./docker/db/init/database.sql:/docker-entrypoint-initdb.d/database.sql
- ./docker/db/mysql:/var/lib/mysql
web:
image: w3development:php7.4
container_name: w3development-web
build: ./docker/web
ports:
- "8081:80"
- "44301:443"
extra_hosts:
- "host.docker.internal:host-gateway"
working_dir: "/var/www"
volumes:
- ./:/var/www
- ./docker/web/etc/php.ini:/usr/local/etc/php/php.ini
- ./docker/web/etc/vhosts:/etc/apache2/sites-enabled
links:
- db
mailserver:
image: mailhog/mailhog
container_name: 'mailhog'
ports:
- "1025:1025"
- "8025:8025"
networks:
default:
name: w3development_network
driver: bridge