-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.1 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
version: "3.7"
services:
backend:
container_name: scraper-api-backend
build:
context: .
target: development
volumes:
- .:/usr/src/app
- backend-node-modules:/usr/src/app/node_modules
ports:
- ${PORT}:${PORT}
- 9229:9229
command: ["/bin/sh", "./docker/dev.command.sh"]
env_file:
- .env
depends_on:
- postgres
- redis
postgres:
container_name: scraper-api-postgres
image: postgres:12.2
environment:
TZ: GMT
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
- scraper-api-pgdata:/var/lib/postgresql/data
redis:
container_name: scraper-api-redis
image: redis:6.2-alpine
restart: always
ports:
- 6379:6379
command: ["redis-server", "--appendonly", "yes"]
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
volumes:
- scraper-api-redis-volume:/data
volumes:
backend-node-modules:
scraper-api-pgdata:
scraper-api-redis-volume: