-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (64 loc) · 2 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
version: "3.3"
services:
# db:
# image: mysql:8.0
# command: --default-authentication-plugin=mysql_native_password
# environment:
# MYSQL_DATABASE: ${MYSQL_DATABASE}
# MYSQL_USER: ${MYSQL_USER}
# MYSQL_PASSWORD: ${MYSQL_PASSWORD}
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
# ports:
# - "3306:3306"
# volumes:
# - ./.docker/mysql-data:/var/lib/mysql
# - ./.docker/deployment/mysql/master/conf/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
# - ./.docker/deployment/mysql/master/conf/my.cnf:/etc/mysql/my.cnf
# networks:
# - backend
rabbitmq:
build:
context: .
dockerfile: ./deployment/rabbitmq/Dockerfile
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USERNAME}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
volumes:
- ./.docker/rabbitmq/etc:/etc/rabbitmq
- ./deployment/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
- ./.docker/rabbitmq/data/:/var/lib/rabbitmq/
- ./.docker/rabbitmq/logs/:/var/log/rabbitmq/
ports:
- "15672:15672"
networks:
- backend
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: unless-stopped
depends_on:
- rabbitmq
environment:
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
SESSION_SECRET_KEY: ${SESSION_SECRET_KEY}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
RABBITMQ_USERNAME: ${RABBITMQ_USERNAME}
RABBITMQ_PASSWORD: ${RABBITMQ_PASSWORD}
RABBITMQ_COOKIE: ${RABBITMQ_COOKIE}
RABBITMQ_FEED_EXCHANGE_NAME: ${RABBITMQ_FEED_EXCHANGE_NAME}
RABBITMQ_FEED_QUEUE_NAME: ${RABBITMQ_FEED_QUEUE_NAME}
RABBITMQ_FEED_ROUTING_KEY: ${RABBITMQ_FEED_ROUTING_KEY}
RABBITMQ_FEED_RECEIVERS_COUNT: ${RABBITMQ_FEED_RECEIVERS_COUNT}
networks:
- backend
networks:
backend: