-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
124 lines (116 loc) · 2.75 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
117
118
119
120
121
122
123
124
version: "3.7"
services:
main:
image: "node:14-slim"
container_name: main
depends_on:
- "mongodb"
- "redis"
build:
context: .
dockerfile: Dockerfile.slim
target: development
user: "node"
working_dir: /usr/src/app
environment:
# - NODE_ENV=production
- VERSION=1.0
volumes:
- .:/usr/src/app
- /usr/app/node_modules
ports:
- "3000:3000"
- "9229:9229"
tty: true
command: "yarn start:debug"
env_file:
- env/local.env
networks:
- webnet
restart: always
metabase-app:
image: metabase/metabase
restart: always
ports:
- 3001:3000
volumes:
# declare your mount volume /host/dir:/container/dir
- /home/app/metabase-data:/metabase-data
# env_file:
# - .env
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: aotocyla
MB_DB_PORT: 5432
MB_DB_USER: aotocyla
MB_DB_PASS: 8zLQ1t3VdTluHgfzsLmtu4Aq5K0vgYvK
MB_DB_HOST: john.db.elephantsql.com
portainerservice:
image: portainer/portainer
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9000:9000"
mongodb:
container_name: mongoback # take snapshot:: `docker exec mongoback sh -c 'mongodump --archive' > db.dump`
image: "docker.io/bitnami/mongodb:4.4-debian-10"
ports:
- "27017:27017"
volumes:
- "mongodb_data:/bitnami/mongodb"
networks:
- webnet
# this will run on a separate instance in production later
worker:
image: "node:14.15.1-alpine3.12"
container_name: worker
build:
context: ~/Documents/personal/molecule_bull_microservice
dockerfile: Dockerfile.slim
target: development
user: "node"
working_dir: /usr/src/app
volumes:
- ../molecule_bull_microservice/.:/usr/src/app
- /usr/app/node_modules
environment:
- NODE_ENV=production
- VERSION=1.0
tty: true
command: "yarn start:debug"
env_file:
- "../molecule_bull_microservice/local.env"
networks:
- webnet
ports:
- 9999:3333
# - 9229:9229
restart: always
redis:
image: "bitnami/redis:latest"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PASSWORD=password123
- REDIS_USER=shanur
command: /opt/bitnami/scripts/redis/run.sh --maxmemory 100mb
ports:
- "6379:6379"
networks:
- webnet
# minio:
# image: 'bitnami/minio:latest'
# ports:
# - '9009:9000'
# environment:
# - MINIO_ACCESS_KEY=AKIARGBOXP35BONONB4J
# - MINIO_SECRET_KEY=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
# networks:
# - webnet
networks:
webnet:
volumes:
portainer_data:
pgdata:
mongodb_data:
driver: local