forked from Taker-Academy/Spotiflyx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (45 loc) · 945 Bytes
/
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
version: "3.8"
services:
db:
build: mariadb:latest
restart: always
ports:
- "3306:3306"
volumes:
- ./DB/schema.sql:/docker-entrypoint-initdb.d/schema.sql
networks:
- network_spotiflyx
backend:
build: ./backend
restart: always
env_file:
- path: ./backend/.env
required: true
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_USER: ${MYSQL_USER}
MYSQL_USER_PASSWORD: ${MYSQL_USER_PASSWORD}
PORT: ${PORT}
SECRET: ${SECRET}
ports:
"8080:8080"
command: npm start
depends-on:
- db
networks:
- network_spotiflyx
frontend:
build: ./frontend
container_name: angular-frontend
restart: always
ports:
"3000:3000"
depends-on:
- backend
networks:
- network_spotiflyx
networks:
network_spotiflyx:
driver: bridge
attachable: true