-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 942 Bytes
/
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
# https://www.freecodecamp.org/news/how-to-enable-live-reload-on-docker-based-applications/
version: '3'
services:
mssql:
container_name: mssql
hostname: mssql
build: ./mssql
ports:
- 1433:1433
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=asd.QWE.123
- DATABASE_NAME=temp
- MSSQL_PID=Express
deploy:
resources:
limits:
memory: 1024M
nextjs:
container_name: nextjs
build: ./nextjs
ports:
- 3000:3000
hostname: nodejs
# Run container as production mode by default, uncomment to enable dev mode (live reload enabled)
# command: yarn dev
environment:
- USER_NAME=sa
- PASSWORD=asd.QWE.123
- DATABASE_NAME=temp
- HOST_NAME=mssql
volumes:
- ./nextjs:/src/
- nextjs_node_modules:/src/node_modules
links:
- mssql
depends_on:
- mssql
volumes:
nextjs_node_modules: {}