-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (82 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
89 lines (82 loc) · 1.68 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
84
85
86
87
88
89
services:
# Service PHP-FPM
app:
platform: linux/x86_64
build: ./docker/php
restart: unless-stopped
volumes:
- ./app:/app
networks:
app-network:
aliases:
- php-fpm-app
depends_on:
- mariadb
- redis
# Service Nginx
nginx:
platform: linux/x86_64
image: nginx:latest
restart: unless-stopped
volumes:
- ./app:/app
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- app-network
ports:
- ${NGINX_HTTP_PORT}:80
- ${NGINX_HTTPS_PORT}:443
depends_on:
- app
# Service MariaDB
mariadb:
platform: linux/x86_64
image: mariadb:latest
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${APP_SLUG_NAME}
volumes:
- mariadb-data:/var/lib/mysql
networks:
- app-network
ports:
- ${MYSQL_PORT}:3306
mariadb_testing:
platform: linux/x86_64
image: mariadb:latest
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${APP_SLUG_NAME}
volumes:
- mariadb-data:/var/lib/mysql
networks:
- app-network
ports:
- ${MYSQL_PORT_TESTING}:3306
# Service Redis
redis:
platform: linux/x86_64
image: redis:alpine
restart: unless-stopped
networks:
- app-network
ports:
- ${REDIS_PORT}:6379
mailhog:
platform: linux/x86_64
image: mailhog/mailhog
restart: unless-stopped
networks:
- app-network
ports:
- ${MAILHOG_PORT}:8025
- ${MAILHOG_SMTP_PORT}:1025
# Volumes
volumes:
mariadb-data:
# Réseaux
networks:
app-network:
driver: bridge