-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.11 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
47
48
49
50
51
52
53
54
55
version: '3.9'
services:
backend:
build:
dockerfile: Dockerfile
context: .
restart: unless-stopped
tty: true
volumes:
- .:/src/app:rw
- /src/app/node_modules
command: npm run start:dev
environment:
PORT: ${APP_PORT_DEFAULT}
ports:
- ${APP_PORT}:3000
# debugging port
- ${APP_PORT_DEBUG}:9229
depends_on:
- database
networks:
- lynx_ecommerce
database:
image: postgres:14.0-alpine
restart: unless-stopped
tty: true
volumes:
- ./.db:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- ${DB_PORT}:5432
networks:
- lynx_ecommerce
database_admin:
image: dpage/pgadmin4:latest
restart: unless-stopped
tty: true
depends_on:
- database
environment:
PGADMIN_DEFAULT_EMAIL: ${DB_ADMIN_USER}
PGADMIN_DEFAULT_PASSWORD: ${DB_ADMIN_PASSWORD}
ports:
- ${DB_ADMIN_PORT}:80
networks:
- lynx_ecommerce
networks:
lynx_ecommerce:
driver: bridge