-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
116 lines (116 loc) · 3.35 KB
/
docker-compose.dev.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
107
108
109
110
111
112
113
114
115
116
version: '3.9'
x-env_files: &env_files
- .local.env
- .version.env
x-interactive: &interactive
tty: true
stdin_open: true
services:
nginx:
image: qutex_nginx:latest
environment:
STAGING: 1
# DEBUG: 1
volumes:
- ./services/nginx/dev_default.conf:/etc/nginx/user_conf.d/default.conf
# ports:
# - 80:80
bot:
<<: *interactive
image: qutex_bot:latest
build:
context: ./services/bot
command: start:dev
env_file: *env_files
volumes:
- ./services/bot:/app
- ./services/bot/tsconfig.json:/app/tsconfig.json
- ./services/bot/package.json:/app/package.json
# secrets:
# - token
# - mongoPassword
# ui:
# <<: *interactive
# image: qutex_ui:latest
# build:
# context: services/ui/
# args:
# DEVELOPMENT: "true"
# env_file: *env_files
# volumes:
# - ./services/ui/src:/qutex/src
# - ./services/ui/public:/qutex/public
# - compiled_css:/qutex/src/assets/css
# projects:
# <<: *interactive
# image: qutex_projects:latest
# build:
# context: .
# dockerfile: services/_api_service_template/Dockerfile
# args:
# SERVICE_PREFIX: projects
# env_file: *env_files
# volumes:
# - ./services/projects/api:/projects/api
# - ./services/projects/documents:/projects/documents
# secrets:
# - token
# - mongoPassword
# - privateKey
# users:
# <<: *interactive
# image: qutex_users:latest
# build:
# context: .
# dockerfile: services/_api_service_template/Dockerfile
# args:
# SERVICE_PREFIX: users
# env_file: *env_files
# volumes:
# - ./services/users/api:/users/api
# - ./services/users/documents:/users/documents
# secrets:
# - token
# - mongoPassword
# - privateKey
# auth:
# <<: *interactive
# image: qutex_auth:latest
# build:
# context: .
# dockerfile: services/_api_service_template/Dockerfile
# args:
# SERVICE_PREFIX: auth
# env_file: *env_files
# volumes:
# - ./services/auth/api:/auth/api
# - ./services/auth/documents:/auth/documents
# secrets:
# - token
# - mongoPassword
# - privateKey
migrate:
image: qutex_bot:latest
build:
context: ./services/bot
env_file: *env_files
volumes:
- ./services/bot:/app
mongo_backup:
image: qutex_mongo_backup:latest
mongo:
env_file: *env_files
ports:
- 27017:27017
volumes:
# ignore all css from the docker container and do not mount to my local dir
# This is because the CSS files shouldn't be modified. Only the sass files
# So no need to store them locally.
compiled_css:
secrets:
token:
file: secrets/local/token
mongoPassword:
file: secrets/local/mongoPassword
privateKey:
file: secrets/local/privateKey