Skip to content

Commit b1711ac

Browse files
authored
Merge pull request #6 from observatorycontrolsystem/add_docker_compose
Add docker compose
2 parents 19d15a8 + 40b488c commit b1711ac

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

deploy/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: '3.7'
2+
3+
# This provides a simple example frontend that can view and schedule Requests using
4+
# the Observation Portal API backend and components from the ocs-component-lib.
5+
services:
6+
obs_portal_frontend:
7+
image: observatorycontrolsystem/ocs-example-frontend:0.1.0
8+
ports:
9+
- "8080:8080"
10+
restart: always
11+
environment:
12+
# This address should point to your Observation Portal backend deployment.
13+
# It is used within the frontend, so it can access localhost outside the docker network.
14+
- VUE_APP_OBSERVATION_PORTAL_API_URL=http://127.0.0.1:8000
15+
# This address is used within the docker container, so localhost won't work normally.
16+
# Note that when using the default docker network on linux, 172.17.0.1 works
17+
# for localhost of the host network, but for mac you will need to use
18+
# `host.docker.internal` instead to point to localhost of the host network.
19+
- INTERNAL_OBSERVATION_PORTAL_API_URL=http://172.17.0.1:8000
20+
entrypoint: /entrypoint.sh

0 commit comments

Comments
 (0)