-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.13 KB
/
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
42
43
44
45
46
47
48
49
50
51
version: '3.6'
services:
jenkins:
build: ./jenkins
ports:
- "8080:8080"
- "50000:50000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /usr/bin/docker:/usr/bin/docker
- /usr/local/bin/docker:/usr/local/bin/docker
- /tmp:/tmp
expose:
- "8080"
- "50000"
container_name: jenkins
db:
image: postgres:10.1-alpine
volumes:
- ./dbdata:/var/lib/postgresql/data
environment:
- POSTGRES_DB=archerysec
- POSTGRES_PASSWORD=archerysec
- POSTGRES_USER=archerysec
archerysec:
image: archerysec/archerysec
ports:
- "8000:8000"
expose:
- "8000"
depends_on:
- db
links:
- db:db
environment:
- DB_PASSWORD=archerysec
- DB_USER=archerysec
- NAME=user
- PASSWORD=admin@123A
- DB_NAME=archerysec
- DB_HOST=db
- DJANGO_SETTINGS_MODULE=archerysecurity.settings.development
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY:-"SETME"}
- DJANGO_DEBUG=1
- EMAIL_HOST=mailhog
- EMAIL_PORT=1025
container_name: archerysec