-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 972 Bytes
/
docker-compose.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
version: "3.9"
services:
placesdb:
image: postgis/postgis:latest
restart: always
container_name: placesdb
volumes:
- ~/.pg/pg_data/pr:/var/lib/postgresql/data
env_file: .env
places_remember:
image: places_remember_docker
container_name: places_remember_django
depends_on:
- placesdb
env_file:
- .env
extra_hosts:
- "placesremember.com:127.0.0.1"
restart:
always
volumes:
- .:/code
# Add && ./placesremember/manage.py test rememberapp for tests
command: >
bash -c "python ./placesremember/manage.py makemigrations
&& python ./placesremember/manage.py migrate
&& python ./placesremember/manage.py add_admin
&& ./wait-for-it.sh placesdb:5432 -- uwsgi --ini ./config/uwsgi/uwsgi.ini"
nginx:
image: nginx:1.26.0
restart: always
volumes:
- ./config/nginx:/etc/nginx/templates
- .:/code
ports:
- "80:80"
- "443:443"