version: '3.8' services: nginx: image: nginx:alpine restart: unless-stopped tty: true ports: - '8099:80' - '449:443' volumes: - .:/var/www/html - ./docker/nginx/conf.d/:/etc/nginx/conf.d/ links: - app networks: - ospro depends_on: - app app: build: context: . dockerfile: Dockerfile restart: unless-stopped networks: - ospro db: image: postgres:14.4-alpine restart: always environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - SERVICE_NAME=postgres ports: - '5439:5432' networks: - ospro volumes: - db:/var/lib/postgresql/data networks: ospro: driver: bridge volumes: db: driver: local