-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yaml
59 lines (57 loc) · 1.5 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
services:
postgres:
image: postgres:13.11-bullseye
container_name: java-spring-boot-boilerplate-postgres
restart: always
environment:
POSTGRES_DB: app_db
POSTGRES_PASSWORD: secret
POSTGRES_USER: postgres
ports:
- '5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
- ./var/logs/postgresql:/var/log/postgresql
networks:
- java-spring-boot-boilerplate-network
redis:
image: redis:7.0.12-alpine
container_name: java-spring-boot-boilerplate-redis
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass "secret"
volumes:
- redis-data:/data
ports:
- '6379:6379'
networks:
- java-spring-boot-boilerplate-network
redis-commander:
image: rediscommander/redis-commander:redis-commander-210
restart: always
container_name: java-spring-boot-boilerplate-redis-commander
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_USERNAME: default
REDIS_PASSWORD: secret
HTTP_USER: admin
HTTP_PASSWORD: secret
ports:
- '6380:8081'
networks:
- java-spring-boot-boilerplate-network
mailhog:
image: mailhog/mailhog:latest
container_name: java-spring-boot-boilerplate-mailhog
restart: always
ports:
- '8025:8025'
- '1025:1025'
networks:
- java-spring-boot-boilerplate-network
volumes:
postgres-data:
redis-data:
networks:
java-spring-boot-boilerplate-network:
driver: bridge