-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·92 lines (85 loc) · 2.03 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# docker-compose.yml
## Author: Didarul Amin
## -------------------------------------------------------------------------
## DB ADMIN: 4170
## PYTHON PORT: 6650
## SQL SERVER PORT: 1433
## VSCODE: 8080
## -------------------------------------------------------------------------
version: '3.4'
services:
# -- SQL SERVER ---
mssql:
image: microsoft/mssql-server-linux:latest
container_name: mssql
ports:
- 1433:1433
volumes:
- /var/opt/mssql
# we copy our scripts onto the container
- ./sql:/usr/src/app
# bash will be executed from that path, our scripts folder
working_dir: /usr/src/app
# run the entrypoint.sh that will import the data AND sqlserver
command: sh -c ' chmod +x ./start.sh; ./start.sh & /opt/mssql/bin/sqlservr;'
environment:
ACCEPT_EULA: 'Y'
SA_PASSWORD: SuperP4ssw0rd!
networks:
vscode:
aliases:
- vscode
# -- SQL SERVER CLIENT---
sqlpad:
image: 'sqlpad/sqlpad:latest'
hostname: 'sqlpad'
container_name: sqlpad
ports:
- '4170:3000'
environment:
- SQLPAD_DEBUG=true
- SQLPAD_ADMIN=admin@admin.com
- SQLPAD_ADMIN_PASSWORD=12345
#- DISABLE_USERPASS_AUTH=true
#- SQLPAD_QUERY_RESULT_MAX_ROWS=50000
#- SQLPAD_ALLOW_CONNECTION_ACCESS_TO_EVERYONE=true
volumes:
- ./sqlpad:/var/lib/sqlpad
networks:
vscode:
aliases:
- vscode
python_app:
container_name: python_app
restart: always
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app
links:
#- redis_cache
- mssql
ports:
- '6650:6650/tcp'
networks:
vscode:
aliases:
- vscode
# -- VSCODE IDE---
vscode:
container_name: vscode
image: didar911/vscode
networks:
vscode:
aliases:
- vscode
ports:
- '8080:8080/tcp'
environment:
- PASSWORD=skybird
volumes:
- ./src/:/home/coder/project
networks:
vscode:
driver: bridge