-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.42 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
48
49
50
51
52
53
54
55
56
57
version: '3.4'
services:
api:
build: ./bee_build
image: ${SERVICE_NAME}
container_name: ${SERVICE_NAME}
volumes:
- gosrc:/go
- .:/go/src/${API_BASE_DIR}/${API_NAME}
ports:
- "${PORT}:${PORT}"
env_file:
- .env
environment:
- SERVICE_TAGS=traefik.enable=true,traefik.frontend.entryPoints=http,traefik.frontend.rule=Host:${SERVICE_NAME}.localhost
command: sh -c 'cd ${API_BASE_DIR}/${API_NAME};go get -v; bee run'
depends_on:
- db
networks:
- back_end
db:
image: mongo:4
container_name: ${PLAN_CUENTAS_MONGO_CRUD__DB_URL}
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGO_INITDB_ROOT_USERNAME=${PLAN_CUENTAS_MONGO_CRUD__DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${PLAN_CUENTAS_MONGO_CRUD__DB_PASS}
volumes:
- financiera_mongo_data:/data/db
ports:
- ${DB_PORT}:27017
networks:
- back_end
mongoexpress:
image: mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=${PLAN_CUENTAS_MONGO_CRUD__DB_URL}
- ME_CONFIG_MONGODB_ADMINUSERNAME=${PLAN_CUENTAS_MONGO_CRUD__DB_USER}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${PLAN_CUENTAS_MONGO_CRUD__DB_PASS}
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
ports:
- 8090:8081
depends_on:
- db
networks:
- back_end
volumes:
gosrc:
financiera_mongo_data:
networks:
back_end:
external: true