File tree Expand file tree Collapse file tree 3 files changed +22
-30
lines changed Expand file tree Collapse file tree 3 files changed +22
-30
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ ARG USERNAME=node
1616ARG USER_UID=1000
1717ARG USER_GID=$USER_UID
1818
19+ RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
20+
1921# Configure apt and install packages
2022RUN apt-get update \
21- && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
23+ && apt-get -y install --no-install-recommends dialog 2>&1 \
2224 #
2325 # Verify git and needed tools are installed
2426 && apt-get -y install git iproute2 procps \
@@ -33,6 +35,7 @@ RUN apt-get update \
3335 && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
3436 && apt-get update \
3537 && apt-get -y install --no-install-recommends yarn tmux locales postgresql \
38+ && apt-get install libpq-dev g++ make \
3639 #
3740 # Install eslint globally
3841 && npm install -g eslint \
@@ -47,7 +50,6 @@ RUN apt-get update \
4750 && apt-get install -y sudo \
4851 && echo node ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
4952 && chmod 0440 /etc/sudoers.d/$USERNAME \
50- #
5153 # Clean up
5254 && apt-get autoremove -y \
5355 && apt-get clean -y \
Original file line number Diff line number Diff line change 44"dockerComposeFile" : " docker-compose.yml" ,
55"service" : " web" ,
66"workspaceFolder" : " /workspace" ,
7-
8- // Use 'settings' to set *default* container specific settings.json values on container create.
9- // You can edit these settings after create using File > Preferences > Settings > Remote.
10- "settings" : {
11- "terminal.integrated.shell.linux" : " /bin/bash"
12- },
13-
14- // Uncomment the next line if you want start specific services in your Docker Compose config.
15- // "runServices": [],
16-
17- // Uncomment the line below if you want to keep your containers running after VS Code shuts down.
18- // "shutdownAction": "none",
19-
20- // Uncomment the next line to run commands after the container is created.
21- // "postCreateCommand": "npm install",
22-
23- // Uncomment the next line to have VS Code connect as an existing non-root user in the container. See
24- // https://aka.ms/vscode-remote/containers/non-root for details on adding a non-root user if none exist.
25- // "remoteUser": "node",
26-
277// Add the IDs of extensions you want installed when the container is created in the array below.
28- "extensions" : [
29- " dbaeumer.vscode-eslint"
30- ]
31- }
8+ "customizations" :{
9+ "vscode" : {
10+ "extensions" : [" dbaeumer.vscode-eslint" ],
11+ "settings" : {
12+ "terminal.integrated.shell.linux" : " /bin/bash"
13+ }
14+ }
15+ }
16+ }
Original file line number Diff line number Diff line change 33# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44# -------------------------------------------------------------------------------------------------------------
55
6- version : ' 3'
6+ version : ' 3.9 '
77services :
88 web :
99 # Uncomment the next line to use a non-root user for all processes. You can also
@@ -32,16 +32,21 @@ services:
3232 # Overrides default command so things don't shut down after the process ends.
3333 command : sleep infinity
3434
35- links :
35+ depends_on :
3636 - db
3737
38+ links :
39+ - db:db
40+
3841 db :
39- image : postgres
42+ image : postgres:14-alpine
4043 restart : unless-stopped
4144 ports :
4245 - 5432:5432
46+ command : postgres -c password_encryption=md5
4347 environment :
48+ POSTGRES_HOST_AUTH_METHOD : trust
49+ POSTGRES_INITDB_ARGS : " --auth-local=md5"
4450 POSTGRES_PASSWORD : pass
4551 POSTGRES_USER : user
4652 POSTGRES_DB : data
47-
You can’t perform that action at this time.
0 commit comments