-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.https.yml
More file actions
93 lines (83 loc) · 1.81 KB
/
docker-compose.https.yml
File metadata and controls
93 lines (83 loc) · 1.81 KB
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
82
83
84
85
86
87
88
89
90
91
version: "3"
# openssl req -new -newkey rsa:2048 -nodes -keyout ssl.key -out ssl.csr
services:
nginx:
container_name: proxy
volumes:
- ./proxy/conf/:/etc/nginx/conf.d/
image: proxy
ports:
- "443:443"
- "3000:3000"
- "3001:3001"
- "3333:3333"
- "3334:3334"
- "9090:8080"
depends_on:
- api
- db
- user
- ceo
- adminer
api:
build:
context: ./order-backend-rust
dockerfile: dev.Dockerfile
volumes:
- ./order-backend-rust:/usr/src/myapp
- /usr/src/myapp/target
command: cargo watch --poll -x 'run -- --RUST_BACKTRACE=1'
depends_on:
- db
- ws
restart: always
links:
- db
- ws
ws:
build:
context: ./order-backend-websocket
dockerfile: dev.Dockerfile
volumes:
- ./order-backend-websocket:/usr/src/myapp
- /usr/src/myapp/target
command: cargo watch --poll -x run
depends_on:
- db
restart: always
links:
- db
user:
build:
context: ./order-frontend-user
dockerfile: Dockerfile
volumes:
- ./order-frontend-user:/usr/src/app
- /usr/src/app/node_modules
command: "npm run dev"
restart: always
environment:
- CHOKIDAR_USEPOLLING=true
ceo:
build:
context: ./order-frontend-ceo
dockerfile: Dockerfile
volumes:
- ./order-frontend-ceo:/usr/src/app
- /usr/src/app/node_modules
command: "npm run dev"
restart: always
environment:
- CHOKIDAR_USEPOLLING=true
db:
image: postgres:11
restart: always
environment:
POSTGRES_PASSWORD: dlacjfrb
POSTGRES_USER: dlacjfrb
POSTGRES_DB: dev
ports:
- 5432:5432
adminer:
image: adminer
restart: always