-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.5 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
services:
app:
build:
context: ./API
dockerfile: Dockerfile
env_file:
- ./.env
ports:
- "${HOST_PORT_API}:${APP_PORT_INTERNAL}"
depends_on:
mongodb:
condition: service_healthy
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping').ok"]
interval: 10s
timeout: 5s
retries: 5
start_period: 60s
mongo-express:
image: mongo-express:latest
restart: always
ports:
- "8081:8081"
environment: # <-- Añade esta sección
ME_CONFIG_MONGODB_SERVER: ${ME_CONFIG_MONGODB_SERVER}
ME_CONFIG_MONGODB_PORT: ${ME_CONFIG_MONGODB_PORT}
ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
ME_CONFIG_MONGODB_ENABLE_ADMIN: ${ME_CONFIG_MONGODB_ENABLE_ADMIN}
depends_on:
mongodb:
condition: service_healthy
discord-bot:
build:
context: ./DISCORD_BOT
dockerfile: Dockerfile
env_file:
- ./.env
depends_on:
app:
condition: service_started
restart: unless-stopped
cli-app:
build:
context: ./CLI
dockerfile: Dockerfile
env_file:
- ./.env
depends_on:
app:
condition: service_started
stdin_open: true
tty: true
volumes:
mongo-data: