-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.postgres.yml
59 lines (58 loc) · 1.11 KB
/
docker-compose.postgres.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
54
55
56
57
58
59
version: '3'
services:
postgres:
image: postgres:13.1-alpine
restart: always
expose:
- '5432'
volumes:
- pg-db-data:/data/db
ports:
- '5432:5432'
environment:
POSTGRES_PASSWORD: postgres
redis:
image: 'redis:6.0.9'
api:
expose:
- '3030'
build:
dockerfile: Dockerfile
context: ./server
depends_on:
- postgres
- redis
volumes:
- /app/node_modules
- ./server:/app
environment:
- PORT=3030
- DB_TYPE=pg
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=postgres
- DB_PORT=5432
- REDIS_HOST=redis
- REDIS_PORT=6379
- APP_URI=http://localhost:3030
- UPLOADS_PUBLIC_URL=http://localhost:3030
ports:
- '3030:3030'
dashboard:
build:
dockerfile: Dockerfile
context: ./dashboard
args:
- REACT_APP_BASE_URL=http://localhost:3030/
depends_on:
- api
volumes:
- /app/node_modules
- ./dashboard:/app
expose:
- '3333'
ports:
- '80:3333'
volumes:
pg-db-data: