-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-bjoern.yml
56 lines (53 loc) · 1.45 KB
/
docker-compose-bjoern.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
version: '3.4'
services:
mongodb:
image: aashreys/mongo-auth:latest
#ports:
#- "27017:27017"
volumes:
- ./mongodb-data:/data/db
- /etc/localtime:/etc/localtime:ro
environment:
- AUTH=yes
- MONGODB_ADMIN_USER=admin
- MONGODB_ADMIN_PASS=admin
- MONGODB_APPLICATION_DATABASE=app
- MONGODB_APPLICATION_USER=app
- MONGODB_APPLICATION_PASS=app
nginx:
image: nginx:1.13.10-alpine
ports:
- "80:80"
volumes:
- ./nginx/default/:/etc/nginx/conf.d
- /etc/localtime:/etc/localtime:ro
depends_on:
- app
app:
image: registry.it-dojo.io/api:latest
build: .
depends_on:
- mongodb
volumes:
- .:/usr/src/app
- /var/run/docker.sock:/var/run/docker.sock
- ./bin/docker.static.18.03.0-ce:/usr/bin/docker
- ./bin/tty-controller:/usr/bin/tty-controller
- ./bin/swarm-exec/swarm-exec:/usr/bin/swarm-exec
- ./bin/swarm-exec/skpp.py:/usr/bin/skpp.py
- ./templates:/templates/
- /etc/localtime:/etc/localtime:ro
working_dir: "/usr/src/app"
command: python run.bjoern.py
restart: on-failure:5
env_file:
- .env
environment:
- LANG=C.UTF-8
- APP_ENVIRONMENT=production
- APP_DOMAIN=${APP_DOMAIN}
- APP_ADMIN=admin@${APP_DOMAIN}
- APP_FROM=no-reply@${APP_DOMAIN}
- API_KEY=${API_KEY}
- MAILGUN_DOMAIN=mail.${APP_DOMAIN}
- MAILGUN_API=${MAILGUN_API}