-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage.yml
More file actions
36 lines (32 loc) · 766 Bytes
/
Copy pathstage.yml
File metadata and controls
36 lines (32 loc) · 766 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
version: '3'
volumes:
stage_postgres_data: {}
stage_postgres_data_backups: {}
services:
django:
restart: always
build:
context: .
dockerfile: ./compose/stage/django/Dockerfile
image: django_stage_yadrta:0.0.1
env_file:
- ./.envs/.stage/.django
- ./.envs/.stage/.postgres
volumes:
- ./:/app
ports:
- "8000:8000"
depends_on:
- postgres
command: /start
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: yadrta_stage_postgres:0.0.1
container_name: yadrta_postgres
volumes:
- stage_postgres_data:/var/lib/postgresql/data
- stage_postgres_data_backups:/backups
env_file:
- ./.envs/.stage/.postgres