-
-
Notifications
You must be signed in to change notification settings - Fork 205
/
docker-compose.yml
50 lines (41 loc) · 869 Bytes
/
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'
services:
db:
image: postgres:11-alpine
restart: always
volumes:
- ./volumes/contacts_db:/contacts_db
environment:
POSTGRES_USER: contacts_db
POSTGRES_PASSWORD: contacts_db_pass
POSTGRES_DB: contacts_db
PGDATA: /contacts_db
redis:
image: redis:5-alpine
volumes:
- ./volumes/redis:/data
api:
image: avatsaev/angular-contacts-api:dev
restart: always
ports:
- 3000:3000
depends_on:
- db
- redis
environment:
SERVER_PORT: 3000
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_USER: contacts_db
POSTGRES_PASSWORD: contacts_db_pass
POSTGRES_DB: contacts_db
REDIS_HOST: redis
REDIS_PORT: 6379
client:
build:
context: .
args:
NG_ENV: local
restart: always
ports:
- 4000:80