Modélisation de données
This commit is contained in:
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
volume:
|
||||
- static:/usr/src/app/static
|
||||
- media:/usr/src/app/media
|
||||
env_file: .env
|
||||
proxy:
|
||||
image: nginx:latest
|
||||
volume:
|
||||
- type: volume
|
||||
source: static
|
||||
target: /usr/share/nginx/html/static
|
||||
read-only: true
|
||||
volume:
|
||||
nocopy: true
|
||||
- type: volume
|
||||
source: media
|
||||
target: /usr/share/nginx/html/media
|
||||
read-only: true
|
||||
volume:
|
||||
nocopy: true
|
||||
ports:
|
||||
- "8080:80"
|
||||
db:
|
||||
image: mysql
|
||||
volume:
|
||||
- mysql_db:/var/lib/mysql
|
||||
env_file: .env
|
||||
volumes:
|
||||
static:
|
||||
media:
|
||||
mysql_db:
|
||||
Reference in New Issue
Block a user