-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (77 loc) · 1.69 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
version: "3.5"
services:
app:
build: .
volumes:
- .:/app
working_dir: /app
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/
- ./public:/app/public:ro
- ".:/var/www/timer:ro"
data:
container_name: mysql
image: mysql:5.7
restart: always
ports:
- "3306:3306"
volumes:
- ./src:/var/www/html
- ./data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: Projet_timer
MYSQL_USER: dbuser
MYSQL_PASSWORD: root
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8081:80"
restart: always
depends_on:
- data
environment:
PMA_HOST: data
MYSQL_USER: dbuser
MYSQL_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
mail:
image: tvial/docker-mailserver:latest
hostname: contact@marlenelingisi.fr # ${HOSTNAME}
domainname: smtp.ionos.fr # ${DOMAINNAME}
container_name: mail # ${CONTAINER_NAME}
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- maillogs:/var/log/mail
- ./config/:/tmp/docker-mailserver/
environment:
- ENABLE_SPAMASSASSIN=1 #anti-spam
- SPAMASSASSIN_SPAM_TO_INBOX=1
- ENABLE_CLAMAV=1 #anti-virus
- ENABLE_FAIL2BAN=1
- ENABLE_POSTGREY=1 #anti-spam
- ONE_DIR=1
- DMS_DEBUG=0
cap_add:
- NET_ADMIN
- SYS_PTRACE
restart: always
composer:
image: composer:latest
command: install
volumes:
- .:/app
volumes:
maildata:
mailstate:
maillogs: