-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (43 loc) · 1.57 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: "3.8"
services:
app:
depends_on:
- postgres
- adminer
image: node:${NODE_IMAGE_TAG}
user: node
ports:
- 3000:3000 # Dev server port
- 9229:9229 # Debugger port - see /.vscode/launch.json
working_dir: ${APP_DIR} # For convenience in case need to `exec` into the container
volumes:
- ./app:${APP_DIR}
- ./startup-scripts:/startup-scripts
- ./volumes/npm-global:${NPM_CONFIG_PREFIX}
environment:
# See recommendations at: https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md
NPM_CONFIG_PREFIX: ${NPM_CONFIG_PREFIX}
CONFIGURED_REMOTE_PATH: ${REMOTE_PATH}
command: bash -c 'for file in /startup-scripts/*.sh; do $$file; done'
postgres:
image: postgres:${POSTGRES_IMAGE_TAG}
volumes:
# Postgres default data files location: https://github.com/docker-library/docs/blob/master/postgres/README.md#pgdata
- ./volumes/db-postgres:/var/lib/postgresql/data
user: 1000:1000
environment:
# Env var ref: https://github.com/docker-library/docs/blob/master/postgres/README.md#environment-variables
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
adminer:
depends_on:
- postgres
image: adminer # Just use latest.
volumes:
# For custom files for plugins requiring parameters; see: https://hub.docker.com/_/adminer
- ./volumes/adminer-plugins:/var/www/html/plugins-enabled
ports:
- 8080:8080
environment:
- ADMINER_PLUGINS=${ADMINER_PLUGINS}
- ADMINER_DESIGN=${ADMINER_DESIGN}