-
Notifications
You must be signed in to change notification settings - Fork 16
/
compose.yaml
48 lines (43 loc) · 1.04 KB
/
compose.yaml
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
# Shared env_file configuration for all services
# Learn more about extentions at https://docs.docker.com/reference/compose-file/extension/
x-env_file: &env_file
# Set default variables with .env.example
- path: .env.example
# Override variables with .env
- path: .env
required: false
services:
rabbitmq:
container_name: aiwings-rabbitmq
image: rabbitmq:management
restart: unless-stopped
ports:
- "5672:5672"
- "15672:15672"
env_file: *env_file
mysql:
container_name: aiwings-mysql
image: mysql:8.0.27
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
env_file: *env_file
server:
container_name: aiwings-server
build: api-server
restart: unless-stopped
depends_on:
- rabbitmq
- mysql
ports:
- "3080:3080"
env_file: *env_file
web:
container_name: aiwings-web
build: web_ui
restart: unless-stopped
ports:
- "80:80"
- "443:443"
env_file: *env_file