generated from Code4PuertoRico/base-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (44 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
39
40
41
42
43
44
45
46
47
48
49
version: '3.7'
volumes:
postgres_data:
external: false
x-app: &app-config
build:
context: "."
volumes:
- .:/src
restart: "unless-stopped"
links:
- database:database
services:
database:
image: postgres:13.3
container_name: una_hora_database
restart: always
environment:
- POSTGRES_PASSWORD=password
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "5432:5432"
web:
<<: *app-config
command: dev_web_start
entrypoint: /src/docker-entrypoint.sh
env_file:
- .env
environment:
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
- DJANGO_SETTINGS_MODULE=config.settings.local
ports:
- 8000:8000
tailwind:
<<: *app-config
command: dev_tailwind_start
entrypoint: /src/docker-entrypoint.sh
env_file:
- .env
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
ports:
- 8383:8383