-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·49 lines (46 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
executable file
·49 lines (46 loc) · 1.09 KB
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
48
49
version: '3.1'
services:
app:
#build: .
image: my-project-dev:latest
container_name: "fastapi-dev"
ports:
- "1234:8886"
restart: on-failure #always
volumes:
- ${PWD}:/app
#- app:/app
depends_on:
- mysql
networks:
- net
redis:
image: my-redis-img:latest
container_name: "redis-dev"
ports:
- "1235:6379"
command: redis-server --appendonly yes
volumes:
- redis:/data
restart: always
networks:
- net
mysql:
image: mysql-img:latest
container_name: "mysql-dev"
command: --default-authentication-plugin=mysql_native_password
ports:
- "1236:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: mysqlpwd
volumes:
- db_data:/var/lib/mysql
networks:
- net
networks:
net:
volumes:
app:
redis:
db_data: