forked from Describly/fastapi-sqlalchemy-alembic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.1 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.8"
services:
adminer-service:
image: adminer:latest
restart: unless-stopped
container_name: adminer
depends_on:
- mysql-service
networks:
- describly
ports:
- "8080:8080"
fastapi-service:
build:
context: .
dockerfile: Dockerfile
image: fastapi
container_name: fastapi
restart: unless-stopped
depends_on:
- mysql-service
ports:
- "8000:8000"
networks:
- describly
volumes:
- ".:/usr/srv"
smtp-service:
image: axllent/mailpit
restart: unless-stopped
container_name: smtp
networks:
- describly
ports:
- "8025:8025"
- "1025:1025"
mysql-service:
image: mysql/mysql-server:8.0.32
command: ["--default-authentication-plugin=mysql_native_password"]
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_PASSWORD
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: $MYSQL_DB
networks:
- describly
volumes:
- describly_mysql_data:/var/lib/mysql
networks:
describly:
volumes:
describly_mysql_data:
external: true