-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 989 Bytes
/
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
version: '3'
services:
go-app:
build: .
container_name: store-api-go
restart: always
environment:
- ENVIRONMENT=PRODUCTION
- SERVER_PORT=8080
- MONGO_SERVER=localhost
- MONGO_PORT=27017
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE=MONGO
- PRIVATE_KEY="blank"
- PUBLIC_KEY="blank"
- REGULAR_TOKEN_LIFETIME=30000000
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- JWT_REFRESH_KEY=${JWT_REFRESH_KEY}
# Super Admin
- SUPER_ADMIN_NAME=${SUPER_ADMIN_NAME}
- SUPER_ADMIN_EMAIL=${SUPER_ADMIN_EMAIL}
- SUPER_ADMIN_PASSWORD=${SUPER_ADMIN_PASSWORD}
- SUPER_ADMIN_NUMBER=${SUPER_ADMIN_NUMBER}
ports:
- "8080:8080"
expose:
- 8080
command: [ "/store-api" ]
depends_on:
- database
networks:
- store-network
volumes:
mongo-db:
networks:
store-network:
driver: bridge