-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (52 loc) · 1.08 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
# Docker Compose file Reference (https://docs.docker.com/compose/compose-file/)
version: '3.8'
services:
backend_dev:
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- mongo
ports:
- "8081:8080"
volumes:
- ./backend:/root
frontend_dev:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "9090:3000"
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- ./data/db:/data/db
mail:
image: tvial/docker-mailserver:latest
hostname: ${HOSTNAME}
domainname: ${DOMAINNAME}
ports:
- "20025:25"
- "20143:143"
- "20587:587"
- "20993:993"
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- maillogs:/var/log/mail
- ./config/:/tmp/docker-mailserver/
env_file:
- .env
cap_add:
- NET_ADMIN
- SYS_PTRACE
restart: always
volumes:
maildata:
mailstate:
maillogs: