generated from amitshekhariitbhu/go-backend-clean-architecture
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (42 loc) · 1010 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
web:
build:
context: .
dockerfile: Dockerfile
image: app
container_name: app
restart: unless-stopped
env_file: .env
ports:
- "$PORT:$PORT"
depends_on:
- pos-mongo-db
mongo:
container_name: pos-mongo-db
image: mongo
restart: unless-stopped
env_file: .env
environment:
- MONGO_INITDB_ROOT_USERNAME=$DB_USER
- MONGO_INITDB_ROOT_PASSWORD=$DB_PASS
volumes:
- dbdata:/data/db
ports:
- "$DB_PORT:$DB_PORT"
mongo-express:
container_name: pos-mongo-express
image: mongo-express
restart: always
env_file: .env
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: $DB_USER
ME_CONFIG_MONGODB_ADMINPASSWORD: $DB_PASS
ME_CONFIG_MONGODB_URL: mongodb://$DB_USER:$DB_PASS@mongo:$DB_PORT/
ME_CONFIG_BASICAUTH: true
ME_CONFIG_BASICAUTH_USERNAME: root
ME_CONFIG_BASICAUTH_PASSWORD: bs-845admin
volumes:
dbdata: