mirror of
https://github.com/zebrajr/website.git
synced 2025-12-06 00:19:54 +01:00
41 lines
834 B
YAML
41 lines
834 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
dev:
|
|
image: node:22
|
|
volumes:
|
|
- ./frontend:/app
|
|
working_dir: /app
|
|
command: npm start
|
|
environment:
|
|
- NODE_ENV=development
|
|
ports:
|
|
- "3000:3000"
|
|
#stdin_open: true
|
|
#tty: true
|
|
|
|
website:
|
|
build: .
|
|
container_name: website
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./frontend/public/quotes:/usr/share/nginx/html/quotes:ro
|
|
- ./frontend/public/lifetips:/usr/share/nginx/html/lifetips:ro
|
|
# Use WITHOUT Reverse Proxy Setup
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- NODE_ENV=production
|
|
# Used in Reverse Proxy Setup
|
|
#expose:
|
|
# - 80
|
|
# Networks
|
|
#networks:
|
|
# - reverse_proxy_network
|
|
|
|
|
|
# Used in a reverse proxy setup
|
|
# networks:
|
|
# reverse_proxy_network:
|
|
# name: reverse_proxy_network
|
|
# external: true |