-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
57 lines (51 loc) · 981 Bytes
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.8'
name: sql-training
services:
back-end:
build:
context: ./sql-back
dockerfile: Dockerfile
restart: always
ports:
- 8080:8080
networks:
- trainnet
front-end:
build:
context: ./sql-front
dockerfile: Dockerfile
restart: always
ports:
- 5173:3000
networks:
- trainnet
sqlserver:
build: ./sql-server
ports:
- 5174:1433
volumes:
- sqlserver_data:/var/opt/mssql
restart: always
networks:
- trainnet
postgres:
image: postgres:17.0
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: world
PGDATA: /data/postgres
volumes:
- ./sql-data/postgres.sql:/docker-entrypoint-initdb.d/init.sql
- postgres:/data/postgres
ports:
- "5175:5432"
restart: always
networks:
- trainnet
volumes:
postgres:
sqlserver_data:
networks:
trainnet:
driver: bridge