-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·53 lines (53 loc) · 1.03 KB
/
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
version: '3.8'
services:
app:
build: .
restart: always
volumes:
- ./:/home/app
ports:
- 3000:3000
networks:
- backend
depends_on:
- database
- redis1
- redis2
database:
image: postgres:latest
restart: always
environment:
- POSTGRES_PASSWORD=${TYPEORM_DATABASE_PASSWORD}
- POSTGRES_USER=${TYPEORM_DATABASE_USERNAME}
- POSTGRES_DB=${TYPEORM_DATABASE_NAME}
ports:
- ${TYPEORM_DATABASE_PORT}:${TYPEORM_DATABASE_PORT}
volumes:
- db:/var/lib/pgpsql/data
networks:
- backend
redis1:
image: redis:latest
restart: always
ports:
- ${REDIS_PORT}:${REDIS_PORT}
volumes:
- redis1:/var/lib/redis1
networks:
- backend
redis2:
image: redis:latest
restart: always
volumes:
- redis2:/var/lib/redis2
ports:
- ${REDIS_MICROSERVICE_PORT}:${REDIS_MICROSERVICE_PORT}
networks:
- backend
volumes:
db: {}
redis1: {}
redis2: {}
networks:
backend:
driver: bridge