-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
55 lines (51 loc) · 1.1 KB
/
docker-compose.prod.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
version: "3.8"
services:
backend:
build:
dockerfile: Dockerfile.prod
image: backend:latest
container_name: medusa-server
restart: always
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/medusa-docker
NODE_ENV: production
STORE_CORS: http://localhost
ports:
- "9000:9000"
postgres:
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: medusa-docker
redis:
restart: always
admin:
build:
context: ./admin
dockerfile: Dockerfile.prod
image: admin:latest
restart: always
depends_on:
- backend
container_name: medusa-admin
environment:
NODE_ENV: production
NODE_OPTIONS: --openssl-legacy-provider
ports:
- "7000:80"
storefront:
build:
dockerfile: Dockerfile.prod
image: storefront:latest
container_name: medusa-storefront
restart: always
environment:
NODE_ENV: production
depends_on:
- backend
ports:
- "80:80"