-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
76 lines (70 loc) · 1.95 KB
/
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
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
# networks:
# default:
# external: true
# name: traefik-proxy
services:
nginx:
image: nginx:latest
restart: unless-stopped
ports:
- ${APP_PORT:-8080}:80
volumes:
- ./docker/nginx/:/etc/nginx/conf.d/
frontend:
image: mivalsten/gig3r-frontend:${GIGER_IMAGE_TAG:-latest}
build:
context: ./frontend
restart: unless-stopped
expose:
- 8080
backend:
image: mivalsten/gig3r-backend:${GIGER_IMAGE_TAG:-latest}
deploy:
replicas: 3
build:
context: ./backendDotnet/Giger
dockerfile: ../Dockerfile
args:
- ASPNETCORE_CONFIGURATION=Debug
restart: unless-stopped
expose:
- 8080
volumes:
- ./backendDotnet/Giger/appsettings.json:/app/appsettings.json
environment:
#- GigerDB__ConnectionString=mongodb://mongo:27017
- GigerDB__Host=mongo
- GigerDB__Port=27017
- GigerDB__Username=${GIGER_USERNAME:-giger}
- GigerDB__Password=${GIGER_PASSWORD:-giger}
- GigerDB__DatabaseName=${GIGER_DATABASE:-admin}
- ASPNETCORE_ENVIRONMENT=Development
depends_on:
- mongo
mongo:
image: mongo:latest
restart: unless-stopped
expose:
- 27017
ports:
- ${MONGO_PORT:-27017}:27017
volumes:
- ./docker/volumes/mongo:/data/db
- ./docker/mongo_init:/docker-entrypoint-initdb.d
- ./data/mongo:/data/
environment:
MONGO_INITDB_DATABASE: ${GIGER_DATABASE:-admin}
MONGO_INITDB_ROOT_USERNAME: ${GIGER_USERNAME:-giger}
MONGO_INITDB_ROOT_PASSWORD: ${GIGER_PASSWORD:-giger}
mongo-express:
image: mongo-express
restart: unless-stopped
ports:
- ${EXPRESS_PORT:-8081}:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_AUTH_DATABASE: ${GIGER_DATABASE:-admin}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${GIGER_USERNAME:-giger}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${GIGER_PASSWORD:-giger}
depends_on:
- mongo