-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
41 lines (39 loc) · 960 Bytes
/
docker-compose.dev.yml
File metadata and controls
41 lines (39 loc) · 960 Bytes
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
services:
# Development overrides for the app service
app:
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- docker.env
environment:
RUST_LOG: debug
RUST_BACKTRACE: 1
volumes:
- ./src:/app/src:ro
- ./templates:/app/templates:ro
- ./migrations:/app/migrations:ro
- ./Cargo.toml:/app/Cargo.toml:ro
command: ["/app/start.sh"]
ports:
- "3000:3000"
- "35729:35729" # Live reload port
depends_on:
db:
condition: service_healthy
restart: unless-stopped
# Development database with exposed ports
db:
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: sortingoffice
MYSQL_USER: sortingoffice
MYSQL_PASSWORD: sortingoffice
volumes:
- mysql_dev_data:/var/lib/mysql
- ./migrations:/docker-entrypoint-initdb.d
volumes:
mysql_dev_data:
driver: local