-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
105 lines (96 loc) · 2.96 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
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
# MAKE SURE YOU HAVE SET THE REQUIRED VARIABLES IN the .env FILE.configs:
# This compose file starts up a dev version of the plugin with hot code reloading.
# It is accessible at http://localhost .
x-adl-variables: &adl-variables
DATABASE_URL: postgis://${WIS2BOX_ADL_DB_USER:-adl}:${WIS2BOX_ADL_DB_PASSWORD}@adl_db:5432/${WIS2BOX_ADL_DB_NAME:-adl}
REDIS_URL: redis://adl_redis:6379/0
WIS2BOX_ADL_ADCON_DATABASE_URL: ${WIS2BOX_ADL_ADCON_DATABASE_URL}
WIS2BOX_ADL_ADCON_INIT_DATETIME: ${WIS2BOX_ADL_ADCON_INIT_DATETIME}
services:
adl_db:
image: timescale/timescaledb-ha:pg15
env_file:
- .env
environment:
- POSTGRES_USER=${WIS2BOX_ADL_DB_USER:-adl}
- POSTGRES_DB=${WIS2BOX_ADL_DB_NAME:-adl}
- POSTGRES_PASSWORD=${WIS2BOX_ADL_DB_PASSWORD:-?}
ports:
- "5432"
volumes:
- pgdata:/var/lib/postgresql/data
adl_redis:
image: redis:alpine
adl:
image: wis2box-adl-adcon-plugin_dev
build:
context: .
dockerfile: ./dev.Dockerfile
args:
- PLUGIN_BUILD_UID=${PLUGIN_BUILD_UID}
- PLUGIN_BUILD_GID=${PLUGIN_BUILD_GID}
ports:
- "8000"
env_file:
- .env
environment:
<<: *adl-variables
WAIT_HOSTS: adl_db:5432,adl_redis:6379
depends_on:
- adl_db
- adl_redis
volumes:
- static:/wis2box_adl/app/src/wis2box_adl/static
- media:/wis2box_adl/app/src/wis2box_adl/media
- ./plugins/wis2box_adl_adcon_plugin:/wis2box_adl/plugins/wis2box_adl_adcon_plugin
# Open stdin and tty so when attaching key input works as expected.
stdin_open: true
tty: true
adl_celery_worker:
image: wis2box-adl-adcon-plugin_dev
command: celery-worker
env_file:
- .env
environment:
<<: *adl-variables
WAIT_HOSTS: adl_db:5432,adl_redis:6379,adl:8000
depends_on:
- adl
volumes:
- static:/wis2box_adl/app/src/wis2box_adl/static
- media:/wis2box_adl/app/src/wis2box_adl/media
- ./plugins/wis2box_adl_adcon_plugin:/wis2box_adl/plugins/wis2box_adl_adcon_plugin
# Open stdin and tty so when attaching key input works as expected.
stdin_open: true
tty: true
adl_celery_beat:
image: wis2box-adl-adcon-plugin_dev
command: celery-beat
env_file:
- .env
environment:
<<: *adl-variables
WAIT_HOSTS: adl_db:5432,adl_redis:6379,adl:8000
depends_on:
- adl
volumes:
- static:/wis2box_adl/app/src/wis2box_adl/static
- media:/wis2box_adl/app/src/wis2box_adl/media
- ./plugins/wis2box_adl_adcon_plugin:/wis2box_adl/plugins/wis2box_adl_adcon_plugin
# Open stdin and tty so when attaching key input works as expected.
stdin_open: true
tty: true
adl_web_proxy:
image: nginx:1.20.2-alpine
env_file:
- .env
volumes:
- static:/wagtail_static
- media:/wagtail_media
- $PWD/nginx.conf:/etc/nginx/nginx.conf
ports:
- ${WIS2BOX_ADL_WEB_PROXY_PORT:-80}:80
volumes:
pgdata:
static:
media: