forked from pvtl/docker-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·83 lines (79 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
executable file
·83 lines (79 loc) · 1.95 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
77
78
79
80
81
82
83
version: '3.7'
networks:
# Default Network ------------------------------------------
lde-network:
ipam:
config:
- subnet: 192.168.103.0/24
services:
# Apache ---------------------------------------------------
apache:
container_name: apache
hostname: apache
restart: ${DOCKER_RESTART}
build:
context: ./apache
dockerfile: ./Dockerfile
args:
- EXTRA_CMDS=${EXTRA_CMDS_APACHE}
ports:
- "80:80"
volumes:
- ./apache/sites:/usr/local/apache2/conf/sites:ro
- ${DOCUMENTROOT}:/var/www/html:delegated
env_file:
- .env
networks:
lde-network:
ipv4_address: 192.168.103.100
# Mailhog ---------------------------------------------------
mailhog:
container_name: mailhog
hostname: mailhog
restart: ${DOCKER_RESTART}
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
lde-network:
# MySQL ---------------------------------------------------
mysql:
container_name: mysql
hostname: mysql
restart: ${DOCKER_RESTART}
build:
context: ./mysql
dockerfile: ./Dockerfile
args:
- EXTRA_CMDS=${EXTRA_CMDS_MYSQL}
env_file:
- .env
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
command: mysqld --sql_mode=""
networks:
lde-network:
# PHP 7.4 ---------------------------------------------------
php:
container_name: php74
hostname: php74
build:
context: ./php
dockerfile: ./74/Dockerfile
args:
- EXTRA_CMDS=${EXTRA_CMDS_PHP74}
- CUSTOM_USER_NAME=${CUSTOM_USER_NAME}
- CUSTOM_UID=${CUSTOM_UID}
- CUSTOM_GID=${CUSTOM_GID}
ports:
- "3000:3000" # Browser Sync
- "3001:3001" # Browser Sync UI
restart: ${DOCKER_RESTART}
volumes:
- ${DOCUMENTROOT}:/var/www/html:delegated
networks:
lde-network:
user: ${CUSTOM_UID}:${CUSTOM_GID}