-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.26 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
# To start stack:
# $ ./scripts/deploy_stack.sh
#
# To stop stack:
# $ docker compose down
volumes:
mongo_data:
services:
# From v5.0.0, mongoDB requires atleast ARMv8.2-A microarchitecture to run.
# So we're going with v4 to improve compatibility on SBCs such as
# Raspberry Pi 4 and Odroid C2 with ARMv8.0-A
mongo:
image: mongo:4
restart: always
# Can be commented out if you don't want to expose the mongo port
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- mongo_data:/data/db
networks:
- app-tier
ssm:
image: ghcr.io/bearlike/simple-secrets-manager:latest
build:
context: .
dockerfile: Dockerfile
args:
VITE_API_BASE_URL: /api
APP_VERSION: ${APP_VERSION:-dev}
restart: always
depends_on:
- mongo
ports:
- "8080:8080"
- "5000:5000"
environment:
CONNECTION_STRING: mongodb://root:password@mongo:27017
TOKEN_SALT: docker-local-dev
CORS_ORIGINS: http://localhost:8080,http://127.0.0.1:8080,http://localhost:5000,http://127.0.0.1:5000
BIND_HOST: 0.0.0.0
PORT: 5000
networks:
- app-tier
networks:
app-tier:
driver: bridge