Skip to content

Commit

Permalink
update compose down (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyanthropos authored Jan 27, 2023
1 parent 784be0e commit ea923e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"workspaceFolder": "/home/node/workspace",

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// "forwardPorts": ["dev:80"],

// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],

// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",
"shutdownAction": "stopCompose",

// Uncomment the next line to run commands after the container is created - for example installing curl.
"initializeCommand": "docker compose down",
"initializeCommand": "docker compose -f docker-compose.yml -f .devcontainer/docker-compose.extend.yml down",
"postCreateCommand": "npm install --omit=optional",
"postStartCommand": "npx snowpack dev",

Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/docker-compose.extend.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# version: '3.9'
services:
dev:
# Do we need auth sock?
# Do we need auth sock?
# If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
# debugging) to execute as the user. Uncomment the next line if you want the entire
Expand Down Expand Up @@ -37,6 +37,7 @@ services:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
restart: on-failure
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"
php:
Expand All @@ -45,6 +46,7 @@ services:
- ./src/Media:/usr/local/apache2/htdocs/media
- ./cypress_php/api:/usr/local/apache2/htdocs/cyapi
- vendor:/usr/local/apache2/htdocs/api/vendor
restart: on-failure
apache:
volumes:
- ./dist:/usr/local/apache2/htdocs/
Expand All @@ -58,6 +60,7 @@ services:
volumes:
- ./doenet_docker/volumes/db:/var/lib/mysql
- ./doenet_docker/volumes/db_init:/docker-entrypoint-initdb.d
restart: on-failure

# for realtime testing
# rtnode:
Expand Down

0 comments on commit ea923e3

Please sign in to comment.