-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 964 Bytes
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
services:
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
target: frontend
ports:
- "3000:3000"
environment:
- STRAPI_URL=http://backend:1337
- AWS_S3_UPLOAD_BUCKET_URL=https://s3.fr-par.scw.cloud/strapi-uploads
develop:
watch:
- path: ./frontend
action: sync
target: /prod/frontend
ignore:
- node_modules/
- action: rebuild
target: /prod/frontend
path: ./frontend/package.json
links:
- backend
depends_on:
- backend
backend:
build:
context: .
dockerfile: docker/Dockerfile
target: backend
ports:
- "1337:1337"
env_file:
- ./backend/.env
develop:
watch:
- action: rebuild
path: ./backend
target: /prod/backend
ignore:
- .tmp/
volumes:
- ./backend/.tmp:/prod/backend/.tmp