-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.06 KB
/
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
version: "3.2"
services:
mongo:
container_name: mongo
image: mongo
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: qwe123
MONGO_INITDB_DATABASE: capytcha
MONGO_INITDB_USERNAME: admin
MONGO_INITDB_PASSWORD: admin
volumes:
- ./container/scripts:/docker-entrypoint-initdb.d
command: --auth
mongo-express:
container_name: mongo-express
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: qwe123
app:
container_name: capytcha
build: .
depends_on:
- mongo
- mongo-express
environment:
JWT_SECRET: "super_tropper_secret"
JWT_ALGORITHM: "HS256"
IMAGE_STORAGE: "LOCAL" # or S3
IMAGE_STORAGE_PATH: "./static"
MONGODB_URI: "mongodb://admin:admin@mongo:27017/capytcha"
APP_NAME: "capytcha"
volumes:
- ./:/app
- /app/.env
ports:
- "8080:8080"
command: dev