-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.53 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# version: '3.3'
# services:
# admin:
# container_name: medusa-admin
# build: .
# ports:
# - 9000:9000
# - 7001:7001
# extra_hosts:
# - "host.docker.internal:host-gateway"
# deploy:
# resources:
# limits:
# cpus: '0.5' # CPU limit in terms of number of CPUs
# memory: 512M # Memory limit
# reservations:
# cpus: '0.25' # CPU reservation in terms of number of CPUs
# env_file:
# - .env
version: "3.8"
services:
backend:
build:
dockerfile: Dockerfile
image: backend:latest
container_name: medusa-server
restart: always
command: ["npm", "run", "start"]
# depends_on:
# - postgres
# - redis
# environment:
# DATABASE_URL: postgres://postgres:postgres@postgres:5432/medusa-docker
# REDIS_URL: redis://redis:6379
# NODE_ENV: production
# STORE_CORS: http://localhost
# JWT_SECRET: something
# COOKIE_SECRET: something
env_file:
- .env
volumes:
- medusa-data:/data
ports:
- 9000:9000
- 7001:7001
# postgres:
# image: postgres:10.4
# ports:
# - "5432:5432"
# volumes:
# - db-data:/var/lib/postgresql/data
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: medusa-docker
# redis:
# image: redis
# container_name: cache
# volumes:
# - cache-data:/data
# expose:
# - 6379
volumes:
medusa-data:
# db-data:
# cache-data: