forked from nmagee/fastapi-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitpod.yml
More file actions
27 lines (23 loc) · 1.22 KB
/
.gitpod.yml
File metadata and controls
27 lines (23 loc) · 1.22 KB
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
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
# Now we will start customizing our environment more.
# First we start with a custom Dockerfile that adds some software to Gitpod:
image:
file: .gitpod.Dockerfile
# Then we add init tasks when the environment is started. First it installs our python
# dependencies as usual, but then also runs a redis DB container for us automatically.
# We will add more DBs to this as we move forward.
tasks:
- init: pip install -r requirements.txt
- name: Run a container for me
command: docker run -d -p 6379:6379 -v /workspace/redis-storage:/data redis redis-server --save 60 1 --loglevel warning
# We have also customized the environment so that whenever we run an app on port 8000 it
# is automatically made public and is opened up in a browser.
ports:
- name: API
description: Preview changes to your application
port: 8000
onOpen: open-browser
visibility: public