-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
executable file
·40 lines (37 loc) · 1015 Bytes
/
docker-compose-dev.yml
File metadata and controls
executable file
·40 lines (37 loc) · 1015 Bytes
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
version: "3.7"
services:
ci-db:
image: postgres:11.6-alpine
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_DB=factlyin
- POSTGRES_USER=factlyin
- POSTGRES_PASSWORD=factlyin
ports:
- 5432:5432
networks:
- ci-net
ci-app:
build:
context: .
command: /bin/sh -c "python check_db.py --service-name ci-db --ip ci-db --port 5432 && python /usr/src/app/manage.py makemigrations && python /usr/src/app/manage.py migrate && bash ./db_install.sh && python /usr/src/app/manage.py initadmin && python /usr/src/app/manage.py runserver 0.0.0.0:8000"
environment:
- DJANGO_SECRET_KEY=secret-key-1234567890
- WAIT_HOSTS=postgres:5432
- ADMIN_USERNAME=admin
- ADMIN_EMAIL=admin@admin.co
- ADMIN_PASSWORD=admin
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
ports:
- 8000:8000
networks:
- ci-net
depends_on:
- ci-db
volumes:
pgdata:
networks:
ci-net: