-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.04 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
# Author: Silas Müller (26.12.2022)
version: '3.9'
services:
db:
container_name: mariadb
image: mariadb:jammy
restart: always
environment:
MARIADB_ROOT_PASSWORD: secretroot
MARIADB_USER: mariadb
MARIADB_PASSWORD: secret
networks:
- appnet
ports:
- "3306:3306" # mariaDB standard
volumes:
- maria:/var/lib/mysql # mariaDB standard files
backend:
container_name: nest
build: .
networks:
- appnet
ports:
- "8080:3000"
environment:
DATABASE_HOST: mariadb
DATABASE_PORT: 3306
DATABASE_USERNAME: root
DATABASE_PASSWORD: secretroot
DATABASE_NAME: vs
frontend:
container_name: springfrontend
networks:
- appnet
ports:
- "8090:8090"
environment:
SERVER_PORT: 8090
BACKEND_ENDPOINT: http://nest:3000/todos/
image: "maeddes/hsefrontend:v1"
networks:
appnet:
name: appnet
volumes:
maria:
external: true # you have to create the mariadb volume in your docker
# TODO nestjs