-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 928 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
version: '3.7'
services:
app:
build:
context: .
target: dev
volumes:
- .env:/usr/src/app/.env
depends_on:
- postgres
ports:
- 5043:4001
restart: unless-stopped
postgres:
image: postgres:13-alpine
environment:
POSTGRES_USER: $PGUSER
POSTGRES_PASSWORD: $PGPASSWORD
POSTGRES_DB: $PGDATABASE
volumes:
- type: volume
source: postgres
target: /var/lib/postgresql/data
volume:
nocopy: true
restart: unless-stopped
nginx:
image: nginx:1.23-alpine
depends_on:
- app
restart: unless-stopped
volumes:
- ./public:/var/www/static
redis:
image: redis:6-alpine
command: redis-server --appendonly yes
volumes:
- type: volume
source: redis
target: /data
volume:
nocopy: true
restart: unless-stopped
volumes:
postgres:
redis: