-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
36 lines (30 loc) · 941 Bytes
/
docker-compose.dev.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
# ===========================================
# A development stack recipe to deliver the app via Nginx, PHP 8.0.x and MySQL 5.7.35.
#
# @author Björn Hempel <bjoern@hempel.de>
# @version 1.0 (2022-03-14)
# ===========================================
# ===========================================
# This file is used in combination with the docker-compose.yml file. For commands and usage see this file.
#
# Start app:
# ----------
# ❯ docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# ===========================================
# Use docker compose version 3.8
version: "3.8"
# configure services
services:
# Nginx to serve the app.
nginx:
ports:
- ${NGINX_EXPOSE_PORT_HTTP}:80
- ${NGINX_EXPOSE_PORT_HTTPS}:443
# MySQL server
db:
ports:
- ${MYSQL_EXPOSE_PORT}:${MYSQL_SERVER_PORT}
# MySQL server
db-test:
ports:
- ${MYSQL_EXPOSE_PORT_TEST}:${MYSQL_SERVER_PORT}