Files
oracle-server/docker-compose.yml
2026-01-28 11:43:25 +09:00

66 lines
1.4 KiB
YAML

services:
php-app:
image: nkey01/laravel-wms:1.0.0
container_name: php-app
restart: unless-stopped
env_file:
- .env
- ./wms/.env
depends_on:
- postgres
volumes:
- laravel_public:/var/www/html/public # public을 볼륨으로 뽑아서 nginx와 공유
nginx:
image: nginx:1.27-alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- laravel_public:/var/www/html/public:ro
depends_on:
- php-app
- n8n
n8n:
image: n8nio/n8n:latest
container_name: n8n
restart: unless-stopped
ports:
- "5678:5678"
env_file:
- .env
- ./n8n/.env
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
- N8N_PATH=/n8n/
- N8N_EDITOR_BASE_URL=${BASE_URL}
volumes:
- ./n8n/data:/home/node/.n8n
- ./n8n/files:/files
depends_on:
- postgres
postgres:
image: postgres:15
container_name: postgres
restart: unless-stopped
ports:
- "5432:5432"
env_file:
- .env
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
laravel_public: