forked from ownrecipes/OwnRecipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 885 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
version: '3.1'
services:
db:
image: mariadb:10.7.3
volumes:
- database:/var/lib/mysql
ports:
- "3306:3306"
env_file:
- ./ownrecipes-api/.env
- ./ownrecipes-api/.env.development
api:
build: ./ownrecipes-api/
command: python manage.py runserver 0.0.0.0:5210
volumes:
- ./ownrecipes-api/v1:/code/v1
- static-files:/code/static-files
- site-media:/code/site-media
depends_on:
- db
ports:
- "5210:5210"
env_file:
- ./ownrecipes-api/.env
- ./ownrecipes-api/.env.development
web:
build: ./ownrecipes-web/
volumes:
- ./ownrecipes-web/src:/code/src
- '/code/node_modules'
profiles: ["all"]
ports:
- "8080:8080"
env_file:
- ./ownrecipes-web/.env
- ./ownrecipes-web/.env.development
volumes:
database:
static-files:
site-media: