-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 914 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.3'
services:
db:
build:
context: ./docker/db/
dockerfile: Dockerfile
ports:
- "1433:1433"
environment:
SA_PASSWORD: "Alaska2017"
ACCEPT_EULA: "Y"
healthcheck:
test: sqlcmd -S db1.internal.prod.example.com -U SA -P 'Alaska2017' -Q 'select distinct 1 from AdventureWorksDW2017.dbo.DimDate'
networks:
mynetwork:
aliases:
- db1.internal.prod.example.com
web:
build:
context: ./docker/web/
dockerfile: Dockerfile
user: root
depends_on:
- db
volumes:
- .:/code/
ports:
- "8080:8080"
environment:
DJANGO_SETTINGS_MODULE: SqlServerOnDocker.settings
command: python3 manage.py runserver 0.0.0.0:8080
restart: unless-stopped
networks:
mynetwork:
aliases:
- web1.internal.prod.example.com
networks:
mynetwork:
driver: bridge