changed folder structure and added readme file
This commit is contained in:
1 parent
cbdffb21e3
commit
3bb0935db9
50 files changed
+6600
-3999
No files matched your search
+43
-14
@@ -1,15 +1,44 @@
|
||||
services:
|
||||
showy:
|
||||
container_name: showycontainer
|
||||
build: .
|
||||
image: showy:latest
|
||||
ports:
|
||||
- 80:80
|
||||
expose:
|
||||
- 80
|
||||
networks:
|
||||
- internalnet
|
||||
version: '3.9'
|
||||
|
||||
networks:
|
||||
internalnet:
|
||||
driver: bridge
|
||||
services:
|
||||
frontend:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
API_URL: http://localhost:4000/api/v1
|
||||
TMDB_API_KEY: 5323ef3dc430df54dcb9e58c37fd22bb
|
||||
ports:
|
||||
- "3000:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: backend/Dockerfile
|
||||
environment:
|
||||
MYSQL_HOST: mysql
|
||||
MYSQL_DB: Showzy
|
||||
MYSQL_USER: root
|
||||
MYSQL_PASSWORD: password
|
||||
ports:
|
||||
- "4000:4000"
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
container_name: mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpassword
|
||||
MYSQL_DATABASE: mydatabase
|
||||
MYSQL_USER: myuser
|
||||
MYSQL_PASSWORD: mypassword
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in new issue
Block a user