-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
46 lines (42 loc) · 929 Bytes
/
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
version: '3.8'
services:
db:
image: postgres:15.4-alpine
container_name: rdb
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: eatda
POSTGRES_USER: local
POSTGRES_PASSWORD: local
ports:
- "15432:5432"
restart: always
server:
image: eatda-docker-test:0.0.2
container_name: server
environment:
PROFILE: prod
DB_URL: jdbc:postgresql://db:5432/eatda
DB_USERNAME: local
DB_PASSWORD: local
ports:
- "18080:8080"
depends_on:
- db
- cache
cache:
image: redis:7.0-alpine
container_name: redis_cache
ports:
- "16379:6379"
volumes:
- ./redis/data:/data
- ./redis/conf/redis.conf:/usr/local/conf/redis.conf
labels:
- "name=redis"
- "mode=standalone"
command: redis-server /usr/local/conf/redis.conf
restart: always
volumes:
postgres: