-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
executable file
·80 lines (76 loc) · 1.87 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
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
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
ports:
- "80:80"
- "443:443"
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
# Mailpit ---------------------------------------------------
mailpit:
container_name: mailpit
hostname: mailpit
restart: ${DOCKER_RESTART}
image: axllent/mailpit
ports:
- "1025:1025"
- "8025:8025"
networks:
lde-network:
# MySQL ---------------------------------------------------
mysql:
container_name: mysql
hostname: mysql
restart: ${DOCKER_RESTART}
build:
context: ./mysql
dockerfile: ./Dockerfile
env_file:
- .env
environment:
- MARIADB_AUTO_UPGRADE=true
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
command: mariadbd --sql_mode=""
networks:
lde-network:
# PHP 8.3 ---------------------------------------------------
php83-fpm:
container_name: php83
hostname: php83
build:
context: ./php
dockerfile: ./83/Dockerfile
args:
- 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}