-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.62 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
version: '3.9'
networks:
sms-network:
driver: bridge
volumes:
database:
services:
maria-db:
# https://stackoverflow.com/questions/65456814/docker-apple-silicon-m1-preview-mysql-no-matching-manifest-for-linux-arm64-v8
# Maria db is cross compatible with ARM (M1 Apple)
# this Dockerfile is separate because it causes issues in the multistage build process for unknown reasons
# which is fine anyway, this keeps the build time faster as we can setup the dependency with a small Dockerfile
container_name: maria-db
build:
context: ./database
volumes:
- database:/var/lib/mysql
ports:
- 33060:3306
restart: unless-stopped
networks:
- sms-network
environment:
MYSQL_DATABASE: StudioManagementSystem
MYSQL_USER: admin_user
MYSQL_PASSWORD: super_secret_password
MYSQL_ROOT_PASSWORD: super_secret_root_password
MYSQL_HOST: localhost
backend_api:
container_name: backend_api
build:
context: ./src/server
volumes:
- ./.certs:/app/certs
networks:
- sms-network
restart: unless-stopped
depends_on:
- maria-db
nginx-revproxy:
container_name: nginx-revproxy
build:
context: ./src/frontend
volumes:
- ./.certs:/data/certs
restart: unless-stopped
ports:
- '80:80'
- '443:443'
networks:
- sms-network
depends_on:
- maria-db