forked from gbozee/pyconng
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdev.yml
82 lines (69 loc) · 1.55 KB
/
dev.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '2'
volumes:
postgres_data_dev: {}
postgres_backup_dev: {}
postgres_data_dev2: {}
postgres_backup_dev2: {}
postgres_data2: {}
postgres_backup2: {}
services:
postgres:
build: ./compose/postgres
volumes:
- postgres_data_dev:/var/lib/postgresql/data
- postgres_backup_dev:/backups
environment:
- DB_USER=pyconnigeria
- DB_PASS=postgres
- DB_NAME=pyconnigeria
ports:
- "5448:5432"
postgres2:
build: ./compose/postgres
volumes:
- postgres_data2:/var/lib/postgresql/data
- postgres_backup2:/backups
environment:
- DB_USER=pyconnigeria
- DB_PASS=postgres
- DB_NAME=pyconnigeria
ports:
- "5435:5432"
db:
build: ./compose/postgres
volumes:
- postgres_data_dev2:/var/lib/postgresql/data
- postgres_backup_dev2:/backups
environment:
- DB_USER=pyconnigeria
- DB_PASS=postgres
- DB_NAME=pyconnigeria
ports:
- "5550:5432"
django2:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
command: /start-dev.sh
depends_on:
- postgres
restart: always
environment:
- POSTGRES_USER=pyconnigeria
- POSTGRES_PASSWORD=postgres
- DATABASE_URL=postgres://pyconnigeria:postgres@postgres/pyconnigeria
- USE_DOCKER=yes
volumes:
- .:/app
stdin_open: true
tty: true
ports:
- "8008:8000"
links:
- postgres
- mailhog
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
- "2201:1025"