-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
47 lines (42 loc) · 970 Bytes
/
docker-compose.prod.yml
File metadata and controls
47 lines (42 loc) · 970 Bytes
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
version: "3.9"
services:
db:
container_name: codecharacter_db
image: mongo:latest
volumes:
- ./data/mongo_prod:/data/db
networks:
- codecharacter_common
environment:
MONGO_INITDB_DATABASE: codecharacter_2022
restart: always
rabbitmq:
container_name: codecharacter_rabbitmq
image: rabbitmq:management-alpine
hostname: 'codecharacter_rabbitmq'
volumes:
- ./config/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./data/rabbitmq_prod:/var/lib/rabbitmq/mnesia/
ports:
- "5672:5672"
- "15672:15672"
networks:
- codecharacter_common
restart: always
core:
container_name: codecharacter_core
build:
context: .
target: production
ports:
- "8086:8080"
depends_on:
- db
- rabbitmq
networks:
- codecharacter_common
restart: always
networks:
codecharacter_common:
name: codecharacter_common
driver: bridge