generated from ytgov/vue-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.development.yml
55 lines (53 loc) · 1.13 KB
/
docker-compose.development.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
version: '3.7'
services:
web:
build:
context: ./src/web
dockerfile: development.Dockerfile
environment:
NODE_ENV: development
tty: true
ports:
- '8080:8080'
volumes:
- ./src/web:/usr/src/web
depends_on:
- api
- db
api:
build:
context: ./src/api
dockerfile: development.Dockerfile
env_file:
- ./src/api/.env.development
environment:
NODE_ENV: development
DB_HOST: db
MAIL_HOST: 'host.docker.internal'
TS_NODE_HISTORY: '/tmp/.ts_node_repl_history'
tty: true
ports:
- '3000:3000'
extra_hosts:
- 'host.docker.internal:host-gateway'
- 'host.docker.internal:172.17.0.1'
volumes:
- ./src/api:/usr/src/api
depends_on:
- db
db:
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
restart: unless-stopped
environment:
- 'ACCEPT_EULA=Y'
- 'SA_PASSWORD=1m5ecure!'
- 'MSSQL_PID=Express'
tty: true
ports:
- '1433:1433'
volumes:
- yhsi_sqlvolume:/var/opt/mssql
- ./db/backups/:/backups
volumes:
yhsi_sqlvolume:
external: true