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
More file actions
85 lines (78 loc) · 1.89 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
85 lines (78 loc) · 1.89 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
74
75
76
77
78
79
80
81
82
83
84
85
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
# environment:
# MYSQL_ROOT_PASSWORD: rootpassword
# networks:
# - intranet
# volumes:
# - mariadb_data:/var/lib/mysql
# - ./mariadb/init.sql:/docker-entrypoint-initdb.d/init.sql
# 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
# environment:
# PMA_HOST: mariadb
# MYSQL_ROOT_PASSWORD: rootpassword
# networks:
# - intranet
# ports:
# - "8081:80"
# depends_on:
# - mariadb
# backend-fastapi:
# image: python:3.10
# container_name: sdc_fastapi_app
# working_dir: /code/app
# networks:
# - intranet
# volumes:
# - ./backend_fastapi/app:/code/app
# - ./backend_fastapi/entrypoint.sh:/code/entrypoint.sh
# ports:
# - "8000:8000"
# entrypoint: ["/code/entrypoint.sh"]
# depends_on:
# - mariadb
frontend-vue:
build: ./frontend_vue
container_name: sdc_vue_app
working_dir: /code/app
volumes:
- ./frontend_vue/app:/code/app
- ./frontend_vue/entrypoint.sh:/code/entrypoint.sh
ports:
- "8080:8080"
entrypoint: ["/code/entrypoint.sh"]
# networks:
# intranet:
# driver: bridge
# volumes:
# postgres_data:
# mariadb_data: