-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
127 lines (121 loc) · 2.88 KB
/
compose.yml
File metadata and controls
127 lines (121 loc) · 2.88 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
services:
# Service PostgreSQL
postgres:
image: postgres:15
container_name: goofeat-postgres
restart: unless-stopped
environment:
POSTGRES_USER: goofeat
POSTGRES_PASSWORD: goofeat_password
POSTGRES_DB: goofeat
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- goofeat-network
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U goofeat']
interval: 10s
timeout: 5s
retries: 5
# Service MongoDB
mongodb:
image: mongo:6
container_name: goofeat-mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: goofeat
MONGO_INITDB_ROOT_PASSWORD: goofeat_password
MONGO_INITDB_DATABASE: goofeat
ports:
- '27017:27017'
volumes:
- mongodb_data:/data/db
networks:
- goofeat-network
command: ['--auth']
# Service MailHog pour tester les emails
mailhog:
image: mailhog/mailhog:latest
container_name: goofeat-mailhog
restart: unless-stopped
ports:
- '1025:1025' # SMTP port
- '8025:8025' # Interface web
networks:
- goofeat-network
adminer:
image: adminer:latest
container_name: goofeat-adminer
restart: unless-stopped
ports:
- '8081:8080'
environment:
ADMINER_DEFAULT_SERVER: postgres
ADMINER_DESIGN: pepa-linha
networks:
- goofeat-network
depends_on:
- postgres
elasticsearch:
image: elasticsearch:8.11.2
container_name: goofeat-elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
ports:
- '9200:9200'
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
networks:
- goofeat-network
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:9200 || exit 1']
interval: 10s
timeout: 5s
retries: 5
kibana:
image: kibana:8.11.2
container_name: goofeat-kibana
restart: unless-stopped
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_SSL_VERIFICATIONMODE=none
ports:
- '5601:5601'
volumes:
- kibana_data:/usr/share/kibana/data
networks:
- goofeat-network
depends_on:
- elasticsearch
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:5601 || exit 1']
interval: 10s
timeout: 5s
retries: 5
# app:
# build: ./app
# container_name: goofeat-app
# restart: unless-stopped
# depends_on:
# - postgres
# - mongodb
# - mailhog
# ports:
# - "3000:3000"
# networks:
# - goofeat-network
# Définition des volumes persistants
volumes:
postgres_data:
mongodb_data:
elasticsearch_data:
kibana_data:
# Définition du réseau
networks:
goofeat-network:
driver: bridge