File tree 3 files changed +22
-30
lines changed
3 files changed +22
-30
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ ARG USERNAME=node
16
16
ARG USER_UID=1000
17
17
ARG USER_GID=$USER_UID
18
18
19
+ RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
20
+
19
21
# Configure apt and install packages
20
22
RUN 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 \
22
24
#
23
25
# Verify git and needed tools are installed
24
26
&& apt-get -y install git iproute2 procps \
@@ -33,6 +35,7 @@ RUN apt-get update \
33
35
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
34
36
&& apt-get update \
35
37
&& apt-get -y install --no-install-recommends yarn tmux locales postgresql \
38
+ && apt-get install libpq-dev g++ make \
36
39
#
37
40
# Install eslint globally
38
41
&& npm install -g eslint \
@@ -47,7 +50,6 @@ RUN apt-get update \
47
50
&& apt-get install -y sudo \
48
51
&& echo node ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
49
52
&& chmod 0440 /etc/sudoers.d/$USERNAME \
50
- #
51
53
# Clean up
52
54
&& apt-get autoremove -y \
53
55
&& apt-get clean -y \
Original file line number Diff line number Diff line change 4
4
"dockerComposeFile" : " docker-compose.yml" ,
5
5
"service" : " web" ,
6
6
"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
-
27
7
// 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 3
3
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4
4
# -------------------------------------------------------------------------------------------------------------
5
5
6
- version : ' 3'
6
+ version : ' 3.9 '
7
7
services :
8
8
web :
9
9
# Uncomment the next line to use a non-root user for all processes. You can also
@@ -32,16 +32,21 @@ services:
32
32
# Overrides default command so things don't shut down after the process ends.
33
33
command : sleep infinity
34
34
35
- links :
35
+ depends_on :
36
36
- db
37
37
38
+ links :
39
+ - db:db
40
+
38
41
db :
39
- image : postgres
42
+ image : postgres:14-alpine
40
43
restart : unless-stopped
41
44
ports :
42
45
- 5432:5432
46
+ command : postgres -c password_encryption=md5
43
47
environment :
48
+ POSTGRES_HOST_AUTH_METHOD : trust
49
+ POSTGRES_INITDB_ARGS : " --auth-local=md5"
44
50
POSTGRES_PASSWORD : pass
45
51
POSTGRES_USER : user
46
52
POSTGRES_DB : data
47
-
You can’t perform that action at this time.
0 commit comments