-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.09 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
version: "3.8"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: backend:test
container_name: medusa-server
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/medusa-docker
REDIS_URL: redis://cache
NODE_ENV: development
JWT_SECRET: some_jwt_secret
COOKIE_SECRET: some_cookie_secret
PORT: 9000
postgres:
image: postgres:10.4
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: medusa-docker
redis:
image: redis
container_name: cache
expose:
- 6379
admin:
build:
context: ./admin
dockerfile: Dockerfile
image: admin:test
depends_on:
- backend
container_name: medusa-admin
environment:
NODE_OPTIONS: --openssl-legacy-provider
storefront:
build:
context: ./storefront
dockerfile: Dockerfile
image: storefront:test
container_name: medusa-storefront
depends_on:
- backend