mafap/docker-compose.prod.yml

46 lines
716 B
YAML
Raw Normal View History

2023-04-04 17:44:06 -04:00
version: '3'
services:
postgres:
container_name: friendsdbprod
image: postgres:15
restart: always
env_file: .env.prod
networks:
- db
volumes:
- pgdata:/var/lib/postgresql/data/
nginx:
container_name: friendsproxyprod
restart: always
ports:
- 25822:80
networks:
- app
depends_on:
- server
build:
context: ./
dockerfile: ./nginx/Dockerfile.prod
server:
container_name: friendsserver
restart: always
env_file: .env.prod
build:
context: ./server
dockerfile: Dockerfile.prod
networks:
- app
- db
networks:
app:
driver: bridge
db:
driver: bridge
volumes:
pgdata: