-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (37 loc) · 1 KB
/
docker-compose.yaml
File metadata and controls
43 lines (37 loc) · 1 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
version: "3"
volumes:
esdata01:
driver: local
services:
#mongodb:
# image: mongo
# container_name: mongodb
# restart: unless-stopped
# ports:
# - 27017:27017
api:
build: .
container_name: MyHeroAPI-container
# env_file:
# - ./.env
image: golang
environment:
API_PORT: ${API_PORT}
SECRET_KEY: ${SECRET_KEY}
URL: mongodb://mongodb:${MONGO_PORT}/?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false
DBNAME: ${DBNAME}
MONGO_PORT: ${MONGO_PORT}
AZURE_URL: ${AZURE_URL}
CONTAINER_NAME: ${CONTAINER_NAME}
AZURE_STORAGE_ACCOUNT_NAME: ${AZURE_STORAGE_ACCOUNT_NAME}
AZURE_STORAGE_ACCOUNT_KEY: ${AZURE_STORAGE_ACCOUNT_KEY}
ports:
- "${API_PORT}:${API_PORT}"
- "${MONGO_PORT}:${MONGO_PORT}"
restart: unless-stopped
depends_on:
- mongodb
mongodb:
image: mongo
container_name: mongo-container
restart: unless-stopped