-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·45 lines (41 loc) · 958 Bytes
/
docker-compose.yaml
File metadata and controls
executable file
·45 lines (41 loc) · 958 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
42
43
44
45
services:
api:
container_name: api
build:
context: .
dockerfile: ${DOCKER_FILE}
working_dir: /api
volumes:
- ./:/api
restart: on-failure
command: uvicorn app.main:app --workers 1 --host 0.0.0.0 --port 8000 --reload
env_file:
- .env
ports:
- "8003:8000"
- "22:22"
storage.mysql:
container_name: storage-mysql
platform: linux/x86_64
image: mysql:8.0.33
env_file:
- .env
volumes:
- ./build/data/mysql:/var/lib/mysql
- ./docs/sql:/tmp/scripts/
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=northwind_test
ports:
- "3308:3306"
storage.redis:
image: redis:alpine
container_name: storage-redis
storage.adminredis:
image: erikdubbelboer/phpredisadmin
container_name: storage-adminredis
environment:
- REDIS_1_HOST=storage.redis
- REDIS_1_NAME=MyRedis
ports:
- "8091:80"