-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.36 KB
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
services:
#serviço de banco de dados, esse container vai ser usado pela API
mastermind-mariadb:
build:
context: ./infra/database
image: mastermind-mariadb
container_name: mastermind-db
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
ports:
- "${MARIADB_HOST_PORT}:3306"
networks:
- mastermind
mastermind-api:
build:
context: ./backend/mastermind
image: mastermind-api
container_name: mastermind-api
restart: always
environment:
MARIADB_HOST: "mastermind-mariadb"
MARIADB_PORT: "3306"
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION_SECONDS: ${JWT_EXPIRATION_SECONDS}
ports:
- "${API_SWAGGER_HOST_PORT}:8080"
networks:
- mastermind
mastermind-website:
build:
context: ./frontend/mastermind
image: mastermind-website
container_name: mastermind-website
restart: always
ports:
- "${WEBSERVER_HOST_PORT}:80"
networks:
- mastermind
networks:
mastermind:
driver: bridge
name: mastermind