-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (60 loc) · 1.42 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.7'
# Templates:
x-base: &base-service-template
init: true
networks:
local:
services:
portainer:
<<: *base-service-template
image: portainer/portainer:latest
container_name: portainer.ctn
command: -p :80
ports:
- "9000:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
sqlserver:
<<: *base-service-template
image: microsoft/mssql-server-linux:latest
container_name: sqlserver.ctn
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-Password1!}
ports:
- "1433:1433"
healthcheck:
test: ./opt/mssql-tools/bin/sqlcmd -S sqlserver -U sa -P Password1! -Q "SELECT 1" || exit 1
interval: 2s
timeout: 2s
retries: 3
start_period: 3s
shower:
<<: *base-service-template
#image: mirzamerdovic/shower:latest
container_name: shower.ctn
build:
context: ./src
dockerfile: Dockerfile
environment:
- SERVER_INSTANCE=sqlserver
- USER_ID=sa
- PASSWORD=Password1!
depends_on:
- sqlserver
stdin_open: true
tty: true
volumes:
- ./Examples/Data/:/opt/mssql-tools/shower
healthcheck:
test: ./bin/sqlcmd -S sqlserver -U sa -P Password1! -Q "SELECT 1" || exit 1
interval: 2s
timeout: 2s
retries: 3
start_period: 3s
networks:
local:
name: local
volumes:
portainer_data: