forked from Aurora-Admin-Panel/deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
55 lines (49 loc) · 1.36 KB
/
docker-compose-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
version: '3.7'
services:
worker:
image: leishi1313/aurora-admin-backend:dev-latest
restart: always
command: bash worker.sh
environment:
ENABLE_SENTRY: 'yes'
DATABASE_URL: 'postgresql://aurora:AuroraAdminPanel321@postgres:5432/aurora'
TRAFFIC_INTERVAL_SECONDS: 600
DDNS_INTERVAL_SECONDS: 120
volumes:
- $HOME/.ssh/id_rsa:/app/ansible/env/ssh_key
- app-data:/app/ansible/priv_data_dirs
backend:
image: leishi1313/aurora-admin-backend:dev-latest
restart: always
command: bash -c "while !</dev/tcp/postgres/5432; do sleep 1; done; alembic upgrade heads && python app/main.py"
environment:
PYTHONPATH: .
DATABASE_URL: 'postgresql://aurora:AuroraAdminPanel321@postgres:5432/aurora'
ENABLE_SENTRY: 'yes'
SECREY_KEY: 'AuroraAdminPanel321'
volumes:
- app-data:/app/ansible/priv_data_dirs
depends_on:
- postgres
nginx:
image: leishi1313/aurora-admin-frontend:dev-latest
restart: always
ports:
- 8000:80
depends_on:
- backend
redis:
image: redis
restart: always
postgres:
image: postgres:13-alpine
restart: always
environment:
POSTGRES_USER: aurora
POSTGRES_PASSWORD: AuroraAdminPanel321
POSTGRES_DB: aurora
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
app-data: