chore: bring docker-compose to root level (#3642)
This commit is contained in:
parent
323d890252
commit
e6584bb717
|
@ -2,7 +2,7 @@
|
||||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/python-3
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/python-3
|
||||||
{
|
{
|
||||||
"name": "IETF Datatracker",
|
"name": "IETF Datatracker",
|
||||||
"dockerComposeFile": ["../docker/docker-compose.yml", "docker-compose.extend.yml"],
|
"dockerComposeFile": ["../docker-compose.yml", "docker-compose.extend.yml"],
|
||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/root/src",
|
"workspaceFolder": "/root/src",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
|
|
|
@ -6,7 +6,7 @@ services:
|
||||||
EDITOR_VSCODE: 1
|
EDITOR_VSCODE: 1
|
||||||
DJANGO_SETTINGS_MODULE: settings_local_sqlitetest
|
DJANGO_SETTINGS_MODULE: settings_local_sqlitetest
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/root/src
|
- .:/root/src
|
||||||
- /root/src/node_modules
|
- /root/src/node_modules
|
||||||
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
||||||
network_mode: service:db
|
network_mode: service:db
|
|
@ -3,7 +3,7 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: docker/app.Dockerfile
|
dockerfile: docker/app.Dockerfile
|
||||||
args:
|
args:
|
||||||
# Update 'VARIANT' to pick a version of Python: 3, 3.10, 3.9, 3.8, 3.7, 3.6
|
# Update 'VARIANT' to pick a version of Python: 3, 3.10, 3.9, 3.8, 3.7, 3.6
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd ..
|
||||||
echo "Shutting down any instance still running and purge images..."
|
echo "Shutting down any instance still running and purge images..."
|
||||||
docker-compose down -v --rmi all
|
docker-compose down -v --rmi all
|
||||||
echo "Purging dangling images..."
|
echo "Purging dangling images..."
|
||||||
docker image prune
|
docker image prune
|
||||||
|
cd docker
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Shutting down any instance still running..."
|
echo "Shutting down any instance still running..."
|
||||||
|
cd ..
|
||||||
docker-compose down -v
|
docker-compose down -v
|
||||||
echo "Rebuilding the DB image..."
|
echo "Rebuilding the DB image..."
|
||||||
docker-compose pull db
|
docker-compose pull db
|
||||||
docker-compose build --no-cache db
|
docker-compose build --no-cache db
|
||||||
|
cd docker
|
||||||
echo "Done!"
|
echo "Done!"
|
|
@ -5,7 +5,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/root/src
|
- .:/root/src
|
||||||
- /root/src/node_modules
|
- /root/src/node_modules
|
||||||
db:
|
db:
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.extend.yml up -d
|
cd ..
|
||||||
|
docker-compose -f docker-compose.yml -f docker/docker-compose.extend.yml up -d
|
||||||
docker-compose exec app /bin/sh /docker-init.sh
|
docker-compose exec app /bin/sh /docker-init.sh
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
cd docker
|
||||||
|
|
Loading…
Reference in a new issue