-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
39 lines (36 loc) · 1 KB
/
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
39
version: '3'
services:
db:
image: postgres:9.6
ports:
- "5435:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=touristsdb
volumes:
- ./dbs/postgres-data:/var/lib/postgresql
# mysql:
# image: mysql
# ports:
# - "3309:3306"
# restart: always
# environment:
# - MYSQL_ROOT_PASSWORD=admin
# - MYSQL_DATABASE=setupdb
# - MYSQL_USER=admin
# - MYSQL_PASSWORD=admin
# volumes:
# - ./dbs/mysql-data:/var/lib/mysql
web:
container_name: tourism_web
build: ./application
command: bash -c "
python manage.py migrate &&
python manage.py runserver --insecure 0.0.0.0:8000";
volumes:
- ./application:/application
ports:
- "8002:8000"
depends_on:
- db