forked from NYCU-SDC/fastapi-env
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml.example
More file actions
73 lines (66 loc) · 1.31 KB
/
Copy pathdocker-compose.yaml.example
File metadata and controls
73 lines (66 loc) · 1.31 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.9'
services:
postgres:
image: postgres:13
container_name: sdc_postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: fastapi
networks:
- intranet
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
mariadb:
image: mariadb:10.6
container_name: sdc_mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpassword
networks:
- intranet
volumes:
- mariadb_data:/var/lib/mysql
pgadmin4:
image: dpage/pgadmin4
container_name: sdc_pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=user@example.com
- PGADMIN_DEFAULT_PASSWORD=password
networks:
- intranet
ports:
- "5050:80"
depends_on:
- postgres
phpmyadmin:
image: phpmyadmin
container_name: sdc_phpmyadmin
restart: always
environment:
PMA_HOST: mariadb
MYSQL_ROOT_PASSWORD: rootpassword
networks:
- intranet
ports:
- "8081:80"
depends_on:
- mariadb
app:
build: ./
container_name: sdc_fastapi_app
restart: always
networks:
- intranet
volumes:
- ./app:/code/app
ports:
- "8080:8000"
networks:
intranet:
driver: bridge
volumes:
postgres_data:
mariadb_data: