-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (75 loc) · 1.72 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
app:
container_name: growmate
restart: always
build:
context: ./backend/Growmate_API
dockerfile: Dockerfile
ports:
- '8080:8080'
depends_on:
- postgresql
- rabbitmq3
#- influxdb
- redis
networks:
- net
postgresql:
container_name: postgresql
image: 'postgres:13.1-alpine'
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: db
ports:
- '5432:5432'
volumes:
#copy the sql script to create tables
- ./database/dump.sql:/docker-entrypoint-initdb.d/01_dump.sql
#copy the sql script to create triggers
- ./database/triggers.sql:/docker-entrypoint-initdb.d/02_triggers.sql
#copy the sql script to fill tables
- ./database/fill_tables.sql:/docker-entrypoint-initdb.d/03_fill_tables.sql
networks:
- net
rabbitmq3:
container_name: rabbitmq
build:
context: ./backend/rabbitmq_config
dockerfile: Dockerfile
environment:
- RABBITMQ_DEFAULT_USER=growmate
- RABBITMQ_DEFAULT_PASS=growmate
ports:
- '5672:5672'
- '15672:15672'
- '1883:1883'
networks:
- net
#influxdb:
# image: influxdb:1.8-alpine
# container_name: influxdb
# restart: always
# environment:
# - INFLUXDB_DB=influx
# - INFLUXDB_ADMIN_USER=admin
# - INFLUXDB_ADMIN_PASSWORD=admin
# ports:
# - '8086:8086'
# networks:
# - net
redis:
container_name: redis
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
environment:
REDIS_USER: user
REDIS_PASSWORD: secret
networks:
- net
networks:
net:
name: net