-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.46 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
version: '3.8'
services:
database:
image: mongo:6.0
container_name: database
restart: always
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
command: --port ${DATABASE_PORT}
environment:
MONGO_INITDB_ROOT_USERNAME: ${DATABASE_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DATABASE_PASS}
networks:
- term-tracker-network
redis:
image: redis:6.0
container_name: redis
command: --port ${REDIS_PORT}
ports:
- ${REDIS_PORT}:${REDIS_PORT}
networks:
- term-tracker-network
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: ghcr.io/joeferner/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:${REDIS_PORT}
ports:
- '8081:8081'
networks:
- term-tracker-network
depends_on:
- redis
app:
container_name: api-term-tracker
build:
context: ./
dockerfile: Dockerfile
env_file:
- .env
environment:
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE_HOST=database
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASS=${DATABASE_PASS}
- REDIS_HOST=localhost
- REDIS_PORT=${REDIS_PORT}
- JWT_SECRET=${JWT_SECRET}
- PORT=${PORT}
ports:
- ${PORT}:${PORT}
depends_on:
- database
- redis
- redis-commander
networks:
- term-tracker-network
networks:
term-tracker-network:
driver: bridge