-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
42 lines (41 loc) · 845 Bytes
/
compose.yaml
File metadata and controls
42 lines (41 loc) · 845 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
41
42
services:
db:
image: postgres:latest
environment:
POSTGRES_PASSWORD: postgres123
ports:
- "5432:5432"
networks:
- cf-network
hostname: flyux-db
app:
build: .
ports:
- "8000"
env_file:
- ".env"
environment:
USER: postgres
NAME: postgres
HOST: db
PORT: 5432
USE_S3: "TRUE"
DEBUG: "FALSE"
depends_on:
- db
command: sh -c "
python manage.py migrate &&
python manage.py collectstatic --clear --noinput &&
python manage.py loaddata
fixtures/aircraft.json
fixtures/airports.json
fixtures/blog.json
fixtures/flights.json &&
python manage.py runserver 0.0.0.0:8000"
restart: on-failure
networks:
- cf-network
hostname: flyux-app
networks:
cf-network:
external: true