forked from ytgov/asset-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
54 lines (52 loc) · 1.11 KB
/
docker-compose.dev.yaml
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
version: "3"
services:
web:
build:
context: ./web
dockerfile: development.Dockerfile
environment:
NODE_ENV: development
ports:
- "8080:8080"
volumes:
- ./web:/usr/src/web
depends_on:
- api
- db
api:
build:
context: ./api
dockerfile: development.Dockerfile
env_file:
- ./api/.env.development
environment:
NODE_ENV: development
DB_HOST: db
MAIL_HOST: 'host.docker.internal'
ports:
- "3000:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
- "host.docker.internal:172.17.0.1"
volumes:
- ./api:/usr/src/api
depends_on:
- db
db:
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- "1433:1433"
env_file:
- db/sqlserver.env
- db/sapassword.env
user: root
volumes:
- sqlsystem:/var/opt/mssql/
- sqldata:/var/opt/sqlserver/data
- sqllog:/var/opt/sqlserver/log
- sqlbackup:/var/opt/sqlserver/backup
volumes:
sqlsystem:
sqldata:
sqllog:
sqlbackup: