-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
108 lines (99 loc) · 2.29 KB
/
docker-compose.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
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
name: research-platform
services:
minio:
extends:
file: apps/object-storage-solution/docker-compose.yml
service: minio
networks:
- minio_network
wrapper:
extends:
file: apps/object-storage-solution/docker-compose.yml
service: go-wrapper
hostname: wrapper
environment:
- BACKEND_URL=http://backend:3011
networks:
- app_network
- minio_network
db:
image: postgres:16
restart: on-failure
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=efrei
- POSTGRES_DB=db
volumes:
- db_data:/var/lib/postgresql/data
networks:
- db_network
frontend:
build:
dockerfile: ./apps/frontend/Dockerfile
restart: on-failure
depends_on:
- backend
ports:
- 3010:3000
env_file:
- apps/frontend/.env.example
environment:
- BACKEND_URL=http://backend:3011
- MINIO_WRAPPER_HTTP_URL=http://wrapper:1206
networks:
- app_network
backend:
build:
dockerfile: ./apps/backend/Dockerfile
restart: on-failure
depends_on:
- db
- elasticsearch
ports:
- 3011:3011
env_file:
- apps/backend/.env.example
environment:
- NODE_ENV=development
- DB_URI=postgres://efrei:secret@db:5432/db
- ELASTICSEARCH_NODE=http://elasticsearch:9200
- FRONTEND_URL=http://frontend:3000
# For some reason, this url with the hostname of the MinIO wrapper doesn't work
- MINIO_WRAPPER_WS_URL=ws://localhost:1206
- MINIO_WRAPPER_HTTP_URL=http://wrapper:1206
networks:
- db_network
- es_network
- app_network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.0
restart: always
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
volumes:
- elastic_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- es_network
adminer:
image: adminer:4.8.1
restart: on-failure
ports:
- 8080:8080
networks:
- es_network
- db_network
volumes:
db_data:
driver: local
elastic_data:
driver: local
networks:
db_network:
es_network:
app_network:
minio_network: