-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (79 loc) · 1.61 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
81
82
83
84
85
86
version: "3.7"
services:
nginx:
image: nginx
ports:
- 80:80
env_file:
- ./env/general.env
volumes:
- ./data:/var/www
- ./nginx/conf/:/etc/nginx/conf.d/
- ./nginx/logs:/var/log/nginx/
working_dir: /var/www
depends_on:
- php7.4-fpm
networks:
- internal
php7.4-fpm:
build:
context: ./php
env_file:
- ./env/general.env
environment:
XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1"
PHP_IDE_CONFIG: "serverName=Docker"
volumes:
- ./data:/var/www
- ./php/logs:/var/log/php/
- ./php/conf/php.ini:/usr/local/etc/php/php.ini
working_dir: /var/www
depends_on:
- mailhog
networks:
- internal
mariadb:
image: bitnami/mariadb
restart: always
ports:
- 3306:3306
env_file:
- ./env/general.env
- ./env/mariadb.env
volumes:
- ./mariadb:/bitnami/mariadb
- ./mariadb/conf/my_custom.cnf:/opt/bitnami/mariadb/conf/my_custom.cnf:ro
- ./mariadb/logs:/opt/bitnami/mariadb/logs
networks:
- internal
adminer:
build:
context: ./adminer
restart: always
ports:
- 8080:8080
env_file:
- ./env/general.env
- ./env/adminer.env
depends_on:
- mariadb
networks:
- internal
mailhog:
build:
context: ./mailhog
restart: always
ports:
- 1025:1025
- 8025:8025
env_file:
- ./env/general.env
networks:
- internal
networks:
internal:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.220.0/28