-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (34 loc) · 967 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
name: larapida
services:
webapp:
container_name: larapida-webapp
image: ctrlmaniac/larapida:latest
entrypoint: /home/entrypoint.sh
volumes:
- ./data/media:/home/data/media
- ./data/static:/home/data/static
ports:
- "8000:8000"
depends_on:
- postgres
environment:
- SECRET_KEY=${SECRET_KEY}
- PRODUCTION=${PRODUCTION}
- DEBUG=${DEBUG}
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
postgres:
container_name: larapida-db
image: postgres:14.5-alpine
volumes:
- ./data/db:/var/lib/postgresql/data/
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}