Reactive-Resume/docker-compose.yml

51 lines
987 B
YAML
Raw Normal View History

2022-03-02 16:44:11 +00:00
version: '3'
services:
postgres:
2022-03-02 16:44:11 +00:00
image: postgres
container_name: postgres
2022-03-02 16:44:11 +00:00
ports:
- 5432:5432
env_file: .env
2022-03-02 16:44:11 +00:00
volumes:
- ./scripts/database/initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
- pgdata:/var/lib/postgresql/data
server:
# Production
# image: amruthpillai/reactive-resume:server-latest
# Development
build:
context: .
dockerfile: server/Dockerfile
container_name: server
env_file: .env
environment:
- PUBLIC_URL=http://client:3000
- POSTGRES_HOST=postgres
ports:
- 3100:3100
depends_on:
- postgres
client:
# Production
# image: amruthpillai/reactive-resume:client-latest
# Development
build:
context: .
dockerfile: client/Dockerfile
container_name: client
env_file: .env
environment:
- PUBLIC_SERVER_URL=http://server:3100
ports:
- 3000:3000
depends_on:
- server
volumes:
pgdata: