-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.18 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# docker-compose build
# docker-compose up -d web
version: '3.5'
services:
db:
image: postgres:11
container_name: youta-db
volumes:
- ./db_data:/var/lib/postgresql/data
restart: on-failure:5
ports:
- "54320:5432"
environment:
POSTGRES_DB: youta
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
services-network:
aliases:
- db
web:
container_name: youta
depends_on:
- db
links:
- db:db
build:
context: .
dockerfile: Dockerfile
environment:
DATABASE_NAME: youta
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: db
DATABASE_PORT: 5432
GOOGLE_CALENDAR_API_REDIRECT_URI: https://www.youtahq.com/register/access_token
REGISTER_URL: https://www.youtahq.com/register/access_token
volumes:
- '.:/usr/src/youta'
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
ports:
- "80:8000"
networks:
services-network:
aliases:
- web
volumes:
db_data:
networks:
services-network:
name: services-network
driver: bridge