forked from Devsoc-BPGC/bits-stack-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.07 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
version: "3.9"
services:
bits-stack-backend:
container_name: bits-stack-backend
#image: bits-stack-backend
#restart: always
command: npm run docker:dev
build: .
ports:
- 5000:5000
- 3000:3000
volumes:
- ./:/usr/src/app/
- /usr/src/app/node_modules
networks:
- webnet
depends_on:
- postgres
working_dir: /usr/src/app
postgres:
container_name: postgres
image: postgres:12
networks:
- webnet
environment:
#here variable are used to createdefault DB for bitstack
POSTGRES_PASSWORD: eatsleepcode
POSTGRES_USER: postgres
POSTGRES_DB: bitstack
# here it'll keep al psql data of bitstack
PG_DATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
redis:
container_name: redis
image: redis:6.2
networks:
- webnet
ports:
- 6379:6379
volumes:
- $PWD/redis-data:/var/lib/redis
- $PWD/redis.conf:/usr/local/etc/redis/redis.conf
networks:
webnet:
volumes:
pgdata: