zipline/.devcontainer/docker-compose.yml
Jayvin Hernandez 04d8b6421a
feat: devcontainers for codespaces, etc.
* experiment with devcontainer.json

* introduce a docker-compose for devcontainer

* Devcontainers!

* version pop

* Port labeling and a complimentary env variable

* see it to believe it

* Update .devcontainer/devcontainer.json

* Update .devcontainer/devcontainer.json

* Update .devcontainer/docker-compose.yml

---------

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
2023-02-23 16:00:59 -08:00

22 lines
No EOL
478 B
YAML

version: '3.8'
services:
app:
image: mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18
volumes:
- ..:/workspace:cached
network_mode: service:db
command: sleep infinity
user: zipline
db:
image: postgres:latest
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
pg_data: