-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (24 loc) · 826 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (24 loc) · 826 Bytes
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
version: "3.7"
services:
api:
build: ./api
ports:
- "3000:3000"
volumes:
- ./api:/usr/src/app
networks:
- db_common_mysql
# fix warning of compilation but compilation time still same long
# next rust version try to build without CARGO_INCREMENTAL variable
environment:
- CARGO_INCREMENTAL=0
# - RUST_BACKTRACE=1
command: bash -c "cp /usr/src/app/nginx.conf /etc/nginx/nginx.conf && service nginx restart && npm install --prefix /usr/src/app/node_firebase && diesel setup && cargo watch -w ./src/ --poll -x run"
networks:
db_common_mysql:
external: true
# is external:
# db:3306
# external network hint:
# https://stackoverflow.com/questions/38088279/communication-between-multiple-docker-compose-projects
# https://github.com/ghotiphud/rust-web-starter