-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (110 loc) · 4.31 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: '3'
#Do not modify, may break setup
#Author: Sayem Prodhan (github.com/Anan5a)
#############################################
# LOCAL DEVELOPMENT ENVIRONMENT DOCKER #
#############################################
services:
web:
image: nginx:latest
ports:
- "80:80" #syntax host:inside container
restart: always
volumes:
- ./:/code #syntax host:inside container
- ./nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- project-net
depends_on:
- php
- database
# - redis
php:
image: php:8.1.8-fpm-bullseye
build:
dockerfile: ./php_extensions
user: "1000:1000"
volumes:
- ./:/code #syntax host:inside container
- ./www.conf:/usr/local/etc/php-fpm.d/www.conf
restart: always
networks:
- project-net
#command: sh -c "cd /code && composer install"
database:
image: mariadb:latest
ports:
- "3306:3306"
volumes:
- data:/var/lib/mysql
- ./mysql.conf:/etc/alternatives/my.cnf
environment:
MARIADB_ROOT_PASSWORD: "${MARIADB_ROOT_PASSWORD}"
MARIADB_DATABASE: "${DB_DATABASE}"
MARIADB_USER: "${DB_USERNAME}"
MARIADB_PASSWORD: "${DB_PASSWORD}"
restart: always
networks:
- project-net
dummy-email:
image: rnwood/smtp4dev
ports:
- "3000:80"
- "2525:25"
volumes:
- smtp4dev-data:/smtp4dev
environment:
# Uncomment to customise these settings
#Specifies the virtual path from web server root where SMTP4DEV web interface will be hosted. e.g. "/" or "/smtp4dev"
#- ServerOptions__BasePath=/smtp4dev
#Specifies the server hostname. Used in auto-generated TLS certificate if enabled.
- ServerOptions__HostName=smtp4dev
#Locks settings from being changed by user via web interface
#- ServerOptions__LockSettings=true
#Specifies the path where the database will be stored relative to APPDATA env var on Windows or XDG_CONFIG_HOME on non-Windows. Specify "" to use an in memory database.
#- ServerOptions__Database=database.db
#Specifies the number of messages to keep
#- ServerOptions__NumberOfMessagesToKeep=100
#Specifies the number of sessions to keep
#- ServerOptions__NumberOfSessionsToKeep=100
#Specifies the TLS mode to use. None=Off. StartTls=On demand if client supports STARTTLS. ImplicitTls=TLS as soon as connection is established.
#- ServerOptions__TlsMode=None
#Specifies the TLS certificate to use if TLS is enabled/requested. Specify "" to use an auto-generated self-signed certificate (then see console output on first startup)
#- ServerOptions__TlsCertificate=
#Sets the name of the SMTP server that will be used to relay messages or "" if messages should not be relayed
#- RelayOptions__SmtpServer=
#Sets the port number for the SMTP server used to relay messages.
#- RelayOptions__SmtpPort=25
#Specifies a comma separated list of recipient addresses for which messages will be relayed. An empty list means that no messages are relayed.
#- RelayOptions__AllowedEmailsString=
#Specifies the address used in MAIL FROM when relaying messages. (Sender address in message headers is left unmodified). The sender of each message is used if not specified.
#- RelayOptions__SenderAddress=
#The username for the SMTP server used to relay messages. If "" no authentication is attempted.
#- RelayOptions__Login=
#The password for the SMTP server used to relay messages
#- RelayOptions__Password=
#Specifies the port the IMAP server will listen on - allows standard email clients to view/retrieve messages
#"ServerOptions__ImapPort"=143
restart: always
networks:
- project-net
# redis:
# image: redis:latest
# command: redis-server --requirepass ${REDIS_PASS}
# ports:
# - "6379:6379"
# volumes:
# - redis-data:/data
# - ./configs/redis:/usr/local/etc/redis/
# restart: always
# networks:
# - project-net
# memcached:
# image: memcached:bullseye
networks:
project-net:
driver: bridge
volumes:
data:
redis-data:
smtp4dev-data: