-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
53 lines (51 loc) · 1.13 KB
/
docker-compose.prod.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
version: '3'
volumes:
pgdata:
redisdata:
services:
postgres:
image: postgres
#restart: always
container_name: 'RTM_POSTGRES'
environment:
POSTGRES_PASSWORD: sails
POSTGRES_USER: sails
POSTGRES_DB: report-type-mapper
ports:
- "5432:5432"
volumes:
- 'pgdata:/var/lib/postgresql/data/'
api:
# image: ${PRIVATE_REGISTRY}/rtm-api:rtm-api
build: ./api
container_name: RTM_Backend
ports:
- "1338:1337"
depends_on:
- postgres
- redis
# env_file: .env
environment:
- NODE_ENV=production
command: "pm2-runtime app.js"
client:
# image: ${PRIVATE_REGISTRY}/rtm-client:rtm-api
build:
context: ./client
dockerfile: Dockerfile.prod
container_name: RTM_Frontend
container_name: RTM_Frontend
ports:
- "80:8000"
redis:
image: redis:3.2.0
container_name: RTM_Redis
ports:
- "6379:6379"
swagger:
image: swaggerapi/swagger-ui
container_name: RTM_Swagger_Docs
environment:
- "API_URL=http://report-type-mapper.hdap.gatech.edu:1338/v1/swagger.json"
ports:
- "3000:8080"