mafap/docker-compose.dev.yml

63 lines
1.0 KiB
YAML
Raw Normal View History

version: '3'
services:
postgres:
container_name: friendsdbdev
image: postgres:15
restart: always
env_file: .env.dev
networks:
- db
volumes:
- pgdata:/var/lib/postgresql/data/
nginx:
container_name: friendsproxydev
restart: always
ports:
- 8000:80
networks:
- app
2023-04-04 01:14:07 -04:00
depends_on:
- server
- client
build:
context: ./nginx
dockerfile: Dockerfile.dev
server:
container_name: friendsserver
restart: always
env_file: .env.dev
build:
context: ./server
target: development
dockerfile: Dockerfile.dev
volumes:
- ./server:/usr/src/app
- /usr/src/app/node_modules
networks:
- app
- db
client:
container_name: friendsclient
build:
context: ./client
target: development
dockerfile: Dockerfile.dev
networks:
- app
volumes:
- ./client:/app
- /app/node_modules
networks:
app:
driver: bridge
db:
driver: bridge
volumes:
pgdata: