-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev
59 lines (44 loc) · 1.34 KB
/
docker-compose.dev
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
version: '2'
services:
dbaas:
image: dbaas:1.7.0
build:
context: .
container_name: dbaas
# Expose ports without publishing them to the host machine
# they’ll only be accessible to linked services. Only the internal port can be specified.
expose:
- "5000"
environment:
- "TZ=America/Los_Angeles"
- DB4SCI_MODE=${DB4SCI_MODE}
- HOSTNAME=${HOSTNAME}
- HOST_IP=${HOST_IP}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_BUCKET=${AWS_BUCKET}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/log/uwsgi:/var/log/uwsgi
- /mydb/db_data:/mydb/db_data
- /mydb/db_backups:/mydb/db_backups
privileged: false
restart: always
web:
image: mydb-web:1.0
build:
context: ${DB4SCI_MODE}/nginx
container_name: mydb-web
ports:
- "80:80"
- "443:443"
links:
- dbaas:dbaas
depends_on:
- dbaas
environment:
- "TZ=America/Los_Angeles"
volumes:
- /mydb/logs/nginx:/var/log/nginx
privileged: true
restart: always