-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
134 lines (124 loc) · 2.41 KB
/
docker-compose.dev.yml
File metadata and controls
134 lines (124 loc) · 2.41 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
version: "3.7"
networks:
internal:
driver: overlay
public:
driver: bridge
secrets:
postgres_password:
file: ./secrets/postgres/POSTGRES_PASSWORD
rabbitmq_erlang_cookie:
file: ./secrets/rabbitmq/RABBITMQ_ERLANG_COOKIE
rabbitmq_password:
file: ./secrets/rabbitmq/RABBITMQ_PASSWORD
services:
elasticsearch:
build:
context: ./docker/elasticsearch
dockerfile: dev.Dockerfile
networks:
- internal
ports:
- "9200"
- "9300"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data:rw
graphql:
build:
context: ./docker/graphql
dockerfile: dev.Dockerfile
depends_on:
- elasticsearch
- migration
- postgres
- rabbitmq
- redis
env_file:
- ./environment/postgres.env
- ./environment/rabbitmq.env
networks:
- internal
ports:
- "3000"
- "9229:9229"
secrets:
- postgres_password
- rabbitmq_password
migration:
build:
context: ./docker/migration
dockerfile: dev.Dockerfile
depends_on:
- elasticsearch
- postgres
- rabbitmq
- redis
env_file:
- ./environment/postgres.env
- ./environment/rabbitmq.env
networks:
- internal
secrets:
- postgres_password
- rabbitmq_password
volumes:
- "${PROJECT_ROOT}/docker/migration/migrations:/data:ro"
nginx:
build:
context: ./docker/nginx
dockerfile: dev.Dockerfile
depends_on:
- graphql
networks:
- internal
- public
ports:
- "8080:80"
- "443"
postgres:
build:
context: ./docker/postgres
dockerfile: dev.Dockerfile
env_file:
- ./environment/postgres.env
networks:
- internal
ports:
- "5432"
secrets:
- postgres_password
volumes:
- postgres_data:/var/lib/postgresql/data:rw
rabbitmq:
build:
context: ./docker/rabbitmq
dockerfile: dev.Dockerfile
env_file:
- ./environment/rabbitmq.env
networks:
- internal
ports:
- "5672"
- "15672:15672"
restart: always
secrets:
- rabbitmq_password
- rabbitmq_erlang_cookie
volumes:
- rabbitmq_data:/var/lib/rabbitmq/mnesia:rw
redis:
build:
context: ./docker/redis
dockerfile: dev.Dockerfile
networks:
- internal
ports:
- "6379"
volumes:
- redis_data:/data:rw
volumes:
elasticsearch_data:
postgres_data:
rabbitmq_data:
redis_data: