-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 1.65 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3"
services:
# TODO: fix hot reload and some other problems
# frontend:
# build:
# dockerfile: Dockerfile
# context: ./frontend
# environment:
# CHOKIDAR_USEPOLLING: "true"
# ports:
# - 8080:8080
# # volumes:
# # - /app/node_modules
# # - ./frontend/web:/app
# volumes:
# - /app/node_modules
# - ./frontend:/app
# env_file:
# - ./frontend/.env
# depends_on:
# - backend
# networks:
# - web
# TODO: fix hot reload and some other problems
# backend:
# build:
# dockerfile: Dockerfile
# context: ./backend
# ports:
# - 8081:8081
# volumes:
# - ./backend:/app # named volume
# - /app/node_modules # anonymous volume for node_modules only
# # volumes:
# # - /app/node_modules # anonymous volume for node_modules only
# # - ./backend:/app # named volume
# # volumes:
# # - .:/usr/app # named volume
# # - /usr/app/node_modules # anonymous volume for node_modules only
# env_file:
# - ./backend/.env
# depends_on:
# - postgres
# networks:
# - web
postgres:
image: postgres:13.4-alpine
ports:
- "5432:5432"
volumes:
- /data/postgres:/data/postgres
env_file:
- ./backend/.env
networks:
- postgres
# pgadmin url - localhost:8082
pgadmin:
links:
- postgres:postgres
image: dpage/pgadmin4
ports:
- "8082:80"
volumes:
- /data/pgadmin:/root/.pgadmin
env_file:
- ./backend/.env
networks:
- postgres
volumes:
node_modules:
networks:
web:
driver: bridge
postgres:
driver: bridge