diff options
| author | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
|---|---|---|
| committer | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
| commit | 09a949092c59856962e4a7d132bc5a5e76fe5e55 (patch) | |
| tree | 990d6b8f24ff9c6dbc0fcb15b5512067d09b17fd /docker-compose.yml | |
Initial commit: Medusa Backend + storefront + config
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..775365f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +version: '3.8'
+
+services:
+ backend:
+ build: ./backend
+ container_name: medusa-backend
+ environment:
+ - DATABASE_URL=${DATABASE_URL}
+ - REDIS_URL=redis://redis:6379
+ - JWT_SECRET=${JWT_SECRET}
+ - COOKIE_SECRET=${COOKIE_SECRET}
+ - NODE_ENV=production
+ - ADMIN_CORS=${ADMIN_CORS}
+ - STORE_CORS=${STORE_CORS}
+ depends_on:
+ - redis
+ ports:
+ - "9000:9000"
+ volumes:
+ - ./backend/uploads:/app/medusa/uploads
+ restart: always
+
+ storefront:
+ build: ./storefront
+ container_name: medusa-storefront
+ environment:
+ - NEXT_PUBLIC_MEDUSA_BACKEND_URL=${NEXT_PUBLIC_MEDUSA_BACKEND_URL}
+ ports:
+ - "8000:8000"
+ restart: always
+
+ redis:
+ image: redis:alpine
+ container_name: medusa-redis
+ ports:
+ - "6379:6379"
+ restart: always
+
|
