-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (48 loc) · 951 Bytes
/
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
version: '3.7'
services:
# mysql:
# image: "mysql:latest"
# volumes:
# - "mysql_volume:/var/lib/mysql"
# environment:
# - MYSQL_ROOT_PASSWORD=sipasdb
# restart: on-failure
# ports:
# - "3307:3306"
# networks:
# - "sipas_network"
postgres:
container_name: "sipas_db"
image: "postgres:15.5"
volumes:
- "postgres_volume:/var/lib/postgresql/data"
restart: on-failure
networks:
- "sipas_network"
environment:
- POSTGRES_PASSWORD=sipasdb
ports:
- "5432:5432"
redis:
container_name: "redis_db"
image: "redis:latest"
ports:
- "6380:6379"
networks:
- "sipas_network"
sipas:
container_name: "sipas_app"
build: .
depends_on:
- "postgres"
- "redis"
networks:
- "sipas_network"
ports:
- "8081:8080"
restart: "on-failure"
networks:
sipas_network:
volumes:
mysql_volume:
postgres_volume: