mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 09:41:31 +10:00
ci(docker): changes to dockerfile to make builds faster
This commit is contained in:
@ -12,22 +12,8 @@ services:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
|
||||
# Development
|
||||
app:
|
||||
build: .
|
||||
container_name: app
|
||||
links:
|
||||
- postgres
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 3100:3100
|
||||
env_file: .env
|
||||
environment:
|
||||
NODE_ENV: development
|
||||
POSTGRES_HOST: postgres
|
||||
|
||||
# Production
|
||||
# app:
|
||||
# image: amruthpillai/reactive-resume
|
||||
# build: .
|
||||
# container_name: app
|
||||
# links:
|
||||
# - postgres
|
||||
@ -36,8 +22,22 @@ services:
|
||||
# - 3100:3100
|
||||
# env_file: .env
|
||||
# environment:
|
||||
# NODE_ENV: production
|
||||
# NODE_ENV: development
|
||||
# POSTGRES_HOST: postgres
|
||||
|
||||
# Production
|
||||
app:
|
||||
image: reactive-resume
|
||||
container_name: app
|
||||
links:
|
||||
- postgres
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 3100:3100
|
||||
env_file: .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
POSTGRES_HOST: postgres
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
|
||||
Reference in New Issue
Block a user