-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.1 KB
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.1"
volumes:
pg_selectel:
services:
pg_db:
image: postgres:14.1-alpine
environment:
- POSTGRES_PASSWORD=123
- POSTGRES_USER=postgres
ports:
- ${POSTGRES_PORT:-5432}:5432
cache_redis:
image: redis:6.2-alpine
environment:
REDIS_HOST: cache
REDIS_PORT: 6379
REDIS_PASSWORD: 1234
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning --requirepass 1234
web-api:
build:
context: ./web-api
dockerfile: ./Dockerfile
restart: always
command: npm run start
environment:
- PORT=3000
ports:
- "3000:3000"
volumes:
- ./shared/local.json:/web-api/config/local.json
worker-pdf:
build:
context: ./worker-pdf
dockerfile: ./Dockerfile
restart: always
command: npm run start
volumes:
- ./shared/local.json:/worker-pdf/config/local.json
worker-email:
build:
context: ./worker-email
dockerfile: ./Dockerfile
restart: always
command: npm run start
volumes:
- ./shared/local.json:/worker-email/config/local.json