-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (64 loc) · 1.4 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
56
57
58
59
60
61
62
63
64
version: "3.9"
services:
ui:
container_name: ui
build:
args:
- UID=${UID}
- GID=${GID}
context: ./ui
ports:
- "3000:3000"
volumes:
- ./ui:/home/node/app
- /home/node/app/node_modules
admin-ui:
container_name: admin-ui
build:
context: ./admin-ui
args:
- UID=${UID}
- GID=${GID}
ports:
- "3001:3000"
environment:
WDS_SOCKET_PORT: 3001
volumes:
- ./admin-ui:/home/node/app
- /home/node/app/node_modules
back:
container_name: back
build:
context: ./back
depends_on:
- postgres
restart: always
ports:
- "3002:80"
volumes:
- ./back:/back
- /back/node_modules
environment:
# DATABASE_URL: postgres://user:pass@postgres:5432/db
NODE_ENV: development
postgres:
image: postgres:12
container_name: postgres
ports:
- "5433:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: "False"
# volumes:
# - pgadmin:/var/lib/pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
restart: unless-stopped