generated from julian-piehl/discordjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
46 lines (42 loc) · 964 Bytes
/
docker-compose.dev.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:
main:
build:
context: .
target: development
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- 9229:9229
command: npm run start:debug
env_file:
- .env
depends_on:
- postgres
postgres:
image: postgres:12
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
# === Dev Containers ===
pgadmin:
image: dpage/pgadmin4:6.10
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_MAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
- PGADMIN_DISABLE_POSTFIX=true
- PGADMIN_LISTEN_PORT=${PGADMIN_PORT}
ports:
- ${PGADMIN_PORT}:${PGADMIN_PORT}
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- postgres
volumes:
pgdata:
pgadmin: