-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.dev.yml
47 lines (42 loc) · 1020 Bytes
/
docker-compose.dev.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
version: "3"
services:
backend:
container_name: tem-dev-backend
build:
context: .
dockerfile: ./docker/backend/Dockerfile
ports:
- 8000:8000
volumes:
- ./backend:/data/backend
command: gunicorn --bind :8000 backend.wsgi:application --reload
web:
container_name: tem-dev-web
tty: true
build:
context: .
dockerfile: ./docker/web/Dockerfile
ports:
- 3000:3000
volumes:
- ./clients/web:/data/web
- ./clients/.env:/data/web/.env
command: sh -c "npm install && npm run dev"
database:
container_name: tem-dev-database
image: mysql:5.7
volumes:
- dbdata:/var/lib/mysql
- ./docker/database/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
- "MYSQL_DATABASE=travel_expense_manager"
- "MYSQL_USER=user"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
adminer:
container_name: tem-dev-adminer
image: adminer
ports:
- 8080:8080
volumes:
dbdata: