-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (56 loc) · 1.29 KB
/
docker-compose.yaml
File metadata and controls
59 lines (56 loc) · 1.29 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
version: '3'
services:
rabbitmq:
image: rabbitmq:3-management-alpine
volumes:
- ./data/rabbitmq/etc/:/etc/rabbitmq/
- ./data/rabbitmq/data/:/var/lib/rabbitmq/
- ./data/rabbitmq/logs/:/var/log/rabbitmq/
environment:
# RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: rabbitUser
RABBITMQ_DEFAULT_PASS: rabbitPass
ports:
- 5672:5672
- 15672:15672
database:
image: postgres:12.2
volumes:
- ./data/postgres:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
POSTGRES_DB: mail_engine
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
worker:
# image: <>
build:
dockerfile: ./Dockerfile.worker
context: .
environment:
- CONF_FILE=conf.yaml
volumes:
- ./conf.yaml:/api/conf.yaml
restart: unless-stopped
depends_on:
- rabbitmq
- database
front:
# image: <>
build:
dockerfile: ./Dockerfile.http_front
context: .
environment:
- CONF_FILE=conf.yaml
ports :
- "5000:5000"
volumes:
- ./conf.yaml:/api/conf.yaml
restart: unless-stopped
depends_on:
- rabbitmq
- worker
- database