-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstaging.yml
62 lines (55 loc) · 1.58 KB
/
staging.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
version: '3'
# note related to the postgres data -- this yaml is designed to work on a copy of a production
# server (amazon ami)
# so copy of the ami of your production server, copy your .envs/.production to .envs/.staging then run this staging environment and and point your DNS
# to test.bddwsalestools.com and then run sudo docker-compose -f staging.yml up --build
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
staging_traefik: {}
services:
django:
build:
context: .
dockerfile: ./compose/staging/django/Dockerfile
image: bddw_prices_staging_django
platform: linux/x86_64
depends_on:
- postgres
- redis
env_file:
- ./.envs/.staging/.django
- ./.envs/.staging/.postgres
command: /start
postgres:
build:
context: .
dockerfile: ./compose/staging/postgres/Dockerfile
image: bddw_prices_staging_postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data:Z
- production_postgres_data_backups:/backups:z
env_file:
- ./.envs/.staging/.postgres
traefik:
build:
context: .
dockerfile: ./compose/staging/traefik/Dockerfile
image: bddw_prices_staging_traefik
depends_on:
- django
volumes:
- staging_traefik:/etc/traefik/acme:z
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
redis:
image: redis:6
awscli:
build:
context: .
dockerfile: ./compose/staging/aws/Dockerfile
env_file:
- ./.envs/.staging/.django
volumes:
- production_postgres_data_backups:/backups:z