-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.docker-compose.yml
106 lines (100 loc) · 2.23 KB
/
app.docker-compose.yml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.9'
secrets:
NUXT_UI_PRO_LICENSE:
environment: APP_NUXT_UI_PRO_LICENSE
FORMKIT_PRO_KEY:
environment: APP_FORMKIT_PRO_KEY
networks:
app_network:
driver: bridge
services:
blog:
container_name: blog
build:
context: .
dockerfile: ./apps/Dockerfile
args:
- APP_NAME=@tituskirch/blog
- APP_PATH=apps/blog
secrets:
- NUXT_UI_PRO_LICENSE
- FORMKIT_PRO_KEY
env_file:
- ./apps/blog/.env
restart: always
ports:
- 3001:3000
networks:
- app_network
web:
container_name: web
build:
context: .
dockerfile: ./apps/Dockerfile
args:
- APP_NAME=@tituskirch/web
- APP_PATH=apps/web
secrets:
- NUXT_UI_PRO_LICENSE
- FORMKIT_PRO_KEY
env_file:
- ./apps/web/.env
restart: always
ports:
- 3000:3000
networks:
- app_network
api-app:
container_name: api-app
build:
context: .
dockerfile: ./services/Dockerfile
args:
- SERVICE_NAME=@tituskirch/api
- SERVICE_PATH=services/api
env_file:
- ./services/api/.env
environment:
CONTAINER_ROLE: app
PULSE_SERVER_NAME: api-app
ports:
- '8000:8000'
api-scheduler:
container_name: api-scheduler
build:
context: .
dockerfile: ./services/Dockerfile
args:
- SERVICE_NAME=@tituskirch/api
- SERVICE_PATH=services/api
env_file:
- ./services/api/.env
environment:
CONTAINER_ROLE: scheduler
PULSE_SERVER_NAME: api-scheduler
api-queue:
container_name: api-queue
build:
context: .
dockerfile: ./services/Dockerfile
args:
- SERVICE_NAME=@tituskirch/api
- SERVICE_PATH=services/api
env_file:
- ./services/api/.env
environment:
CONTAINER_ROLE: queue
PULSE_SERVER_NAME: api-queue
api-pulse-worker:
container_name: api-pulse-worker
build:
context: .
dockerfile: ./services/Dockerfile
args:
- SERVICE_NAME=@tituskirch/api
- SERVICE_PATH=services/api
env_file:
- ./services/api/.env
environment:
CONTAINER_ROLE: pulse-worker
PULSE_SERVER_NAME: api-pulse-worker