-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.02 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
args:
LOCAL_ENVIRONMENT: true
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000", "--reload"]
container_name: app
ports:
- "5000:5000"
env_file:
- .env
volumes:
- "./src:/app/src"
networks:
- allocations-network
depends_on:
- db
db:
restart: always
image: mysql:8.0.32-debian
container_name: db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_TCP_PORT=${APP_DATABASE__PORT}
- MYSQL_DATABASE=${APP_DATABASE__DATABASE}
- MYSQL_USER=${APP_DATABASE__USER}
- MYSQL_PASSWORD=${APP_DATABASE__PASSWORD}
networks:
- allocations-network
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- allocations-network
networks:
allocations-network:
name: allocations-network