-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1012 Bytes
/
docker-compose.yml
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
version: "3.9"
services:
cas_db:
image: postgres:15.1-alpine3.17
container_name: cas_db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: "1234"
POSTGRES_DB: db
networks:
- cas
volumes:
- cas_postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
service_db:
image: postgres:15.1-alpine3.17
container_name: service_db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: "1234"
POSTGRES_DB: db
networks:
- service
volumes:
- service_postgres:/var/lib/postgresql/data
ports:
- "5433:5432"
service_cache:
image: redis
container_name: service_cache
restart: unless-stopped
environment:
REDIS_HOST: localhost
REDIS_PASSWORD: "5678"
networks:
- service
ports:
- "6379:6379"
networks:
cas:
name: cas
service:
name: service
volumes:
cas_postgres:
service_postgres: