-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.07 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
version: "3"
services:
server:
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
command: ["./wait-for-it.sh", "database:5432", "--", "yarn", "start:server"]
volumes:
- /usr/src/app
environment:
DATABASE_HOST: database
DATABASE_PORT: 5432
depends_on:
- database
- worker
worker:
build:
context: .
dockerfile: Dockerfile
command: ["./wait-for-it.sh", "database:5432", "--", "yarn", "start:worker"]
volumes:
- /usr/src/app
environment:
DATABASE_HOST: database
DATABASE_PORT: 5432
depends_on:
- database
storefront:
build:
context: .
dockerfile: Dockerfile-storefront
args:
STOREFRONT_VERSION: 0.3.1
ports:
- 4000:4000
environment:
SERVER_API_HOST: http://server
SERVER_API_PORT: 3000
SERVER_API_PATH: shop-api
database:
image: postgres
volumes:
- /var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: vendure