forked from divio/react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
26 lines (25 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
# This docker-compose.yml file is used to set up your project in the local
# development environment *only*. It is *not* used in deployment to our cloud
# servers, and has no effect whatsoever in cloud deployments.
#
# See our Developer Handbook for more information:
# http://docs.divio.com/en/latest/reference/docker-docker-compose.html
version: "2.3"
services:
# The web container is an instance of exactly the same Docker image as your
# Cloud application container.
web:
build: .
# Change the port if you'd like to expose your project locally on a
# different port, for example if you already use port 8000 for
# something else.
ports:
- "8000:80"
volumes:
- ".:/app:rw"
# There is currently a bug: https://github.com/facebook/create-react-app/issues/8688#issuecomment-602149917
tty: true
# The default command that the container starts with. If you'd like to run
# the project locally in Live configuration, you will need to change this.
# See https://docs.divio.com/en/latest/how-to/local-in-live-mode
command: npm start