-
Notifications
You must be signed in to change notification settings - Fork 10
/
local.yml
119 lines (109 loc) · 2.57 KB
/
local.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "2.4"
volumes:
postgres15_data_local: {}
postgres15_backup_local: {}
services:
squarelet_nginx:
image: nginx:latest
depends_on:
- squarelet_mailhog
volumes:
- ./compose/local/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/certs:/etc/nginx/certs
ports:
- "80:80"
- "443:443"
networks:
default:
aliases:
- dev.mailhog.com
- dev.squarelet.com
- api.dev.documentcloud.org
- www.dev.documentcloud.org
- dev.muckrock.com
- dev.foiamachine.org
squarelet_mailhog:
image: mailhog/mailhog:v1.0.0
environment:
- MH_API_BIND_ADDR=0.0.0.0:80
- MH_UI_BIND_ADDR=0.0.0.0:80
user: root
networks:
default:
aliases:
- internal.dev.mailhog.com
squarelet_django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: squarelet_local_django
depends_on:
- squarelet_postgres
- squarelet_mailhog
- squarelet_nginx
volumes:
- .:/app
- ~/.netrc:/root/.netrc
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
command: /start
networks:
default:
aliases:
- internal.dev.squarelet.com
- internal.dev.presspass.com
squarelet_vite:
build:
context: .
dockerfile: ./compose/local/vite.Dockerfile
image: squarelet_local_vite
restart: always
ports:
- "4200:4200"
# - "5173:5173"
command: "npm run dev"
volumes:
- ".:/app"
networks:
default:
aliases:
- internal.dev.squarelet.com
- internal.dev.presspass.com
squarelet_postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: squarelet_production_postgres15
volumes:
- postgres15_data_local:/var/lib/postgresql/data
- postgres15_backup_local:/backups
env_file:
- ./.envs/.local/.postgres
squarelet_redis:
image: redis:3.2
squarelet_celeryworker:
<<: *django
image: squarelet_local_celeryworker
depends_on:
- squarelet_redis
- squarelet_postgres
- squarelet_mailhog
command: /start-celeryworker
networks:
default:
aliases: []
squarelet_celerybeat:
<<: *django
image: squarelet_local_celerybeat
depends_on:
- squarelet_redis
- squarelet_postgres
- squarelet_mailhog
command: /start-celerybeat
networks:
default:
aliases: []
networks:
default:
name: "squarelet_default"