-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (61 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
61 lines (61 loc) · 1.63 KB
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
58
59
60
61
networks:
investbrain-network:
driver: bridge
services:
app:
image: investbrainapp/investbrain:latest
container_name: investbrain-app
restart: unless-stopped
tty: true
ports:
- 8000:80
environment: # You can either use these properties OR an .env file. Do not use both!
APP_URL: "http://localhost:8000"
DB_CONNECTION: pgsql
DB_HOST: investbrain-pgsql
DB_PORT: 5432
DB_DATABASE: investbrain
DB_USERNAME: investbrain
DB_PASSWORD: investbrain
SESSION_DRIVER: redis
QUEUE_CONNECTION: redis
CACHE_STORE: redis
REDIS_HOST: investbrain-redis
volumes:
- investbrain-storage:/var/app/storage # You can use a volume...
# - /path/to/storage:/var/app/storage:delegated # ...or you can use a path on host
depends_on:
- pgsql
- redis
networks:
- investbrain-network
redis:
image: redis:alpine
container_name: investbrain-redis
restart: unless-stopped
tty: true
command:
- --loglevel warning
volumes:
- investbrain-redis:/data
networks:
- investbrain-network
pgsql:
image: postgres:15-alpine
container_name: investbrain-pgsql
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${DB_DATABASE:-investbrain}
POSTGRES_USER: ${DB_USERNAME:-investbrain}
POSTGRES_PASSWORD: ${DB_PASSWORD:-investbrain}
command: postgres -c log_min_messages=error
volumes:
- investbrain-pgsql:/var/lib/postgresql/data
networks:
- investbrain-network
volumes:
investbrain-storage:
investbrain-redis:
investbrain-pgsql: