-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
71 lines (70 loc) · 1.93 KB
/
docker-compose-dev.yaml
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
version: "3.9"
services:
db:
image: mongo:4
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=PS2AlertMe
expose:
- 27017
volumes:
- db-data:/data/db
- ./backend/config/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
restart: unless-stopped
rabbitmq:
image: rabbitmq:3.8.13-alpine
container_name: rabbitmq
hostname: rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
expose:
- 5672
restart: unless-stopped
publisher:
build:
context: ./backend
dockerfile: $PWD/backend/publisher/dockerfile
image: publisher:v3.0
container_name: publisher
environment:
- RABBITMQ_CONNECTION_URI=${RABBITMQ_CONNECTION_URI}
- PUBLISHER_SERVICEID=${PUBLISHER_SERVICEID}
depends_on:
- rabbitmq
restart: unless-stopped
consumer:
build:
context: ./backend
dockerfile: $PWD/backend/consumer/dockerfile
image: consumer:v3.0
container_name: consumer
environment:
- CONSUMER_PUBLIC_VAPIDKEY=${CONSUMER_PUBLIC_VAPIDKEY}
- CONSUMER_PRIVATE_VAPIDKEY=${CONSUMER_PRIVATE_VAPIDKEY}
- CONSUMER_CONTACT_EMAIL=${CONSUMER_CONTACT_EMAIL}
- RABBITMQ_CONNECTION_URI=${RABBITMQ_CONNECTION_URI}
- MONGODB_CONNECTION_URI=${MONGODB_CONNECTION_URI}
depends_on:
- rabbitmq
- db
restart: unless-stopped
PS2AlertMe:
build:
context: .
dockerfile: dockerfile
image: ps2alertme:v3.0
container_name: PS2AlertMe
environment:
- MONGODB_CONNECTION_URI=${MONGODB_CONNECTION_URI}
- COOKIE_SECRET=${COOKIE_SECRET}
- NODE_ENV=development
ports:
- 8080:8080
depends_on:
- db
restart: unless-stopped
volumes:
db-data: