-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
33 lines (33 loc) · 987 Bytes
/
docker-compose.yaml
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
version: "3.9"
services:
# reddit-scraper:
# container_name: reddit-scraper
# image: maven:3.8.6-eclipse-temurin-17
# command: mvn spring-boot:run
# ports:
# - "8080:8080"
# volumes:
# - ".:/usr/src/app:rw"
# - "/mnt/c/Users/Jimmy Fennelly/.m2":/root/.m2
# working_dir: /usr/src/app
# environment:
# - SPRING_DATASOURCE_URL=jdbc:sqlserver://database;databaseName=spring-boot;encrypt=true;trustServerCertificate=true;
# - SPRING_DATASOURCE_USERNAME=sa
# - SPRING_DATASOURCE_PASSWORD=P@ssw0rd!
# depends_on:
# - database
sql-server:
container_name: sql-server
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- SA_PASSWORD=P@ssw0rd!
- ACCEPT_EULA=Y
- MSSQL_PID=Express
ports:
- "1433:1433"
volumes:
- dbdata:/var/opt/sqlserver/datagit com
- ./src/main/resources/db:/usr/src/app
command: [ "/bin/bash", "/usr/src/app/entry-point.sh" ]
volumes:
dbdata: