-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (64 loc) · 1.26 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Production-like setup
version: "3.9"
services:
backend:
restart: always
build:
context: .
dockerfile: ./clovers-back/Dockerfile
ports:
- 8080:8080
env_file: ./clovers-back/.env
depends_on:
- postgres
- redis
batch:
restart: always
build:
context: .
dockerfile: ./clovers-batch/Dockerfile
volumes:
- ./:/app
env_file: ./clovers-batch/.env
depends_on:
- postgres
- redis
- backend
preview:
build:
context: .
dockerfile: ./clovers-preview/Dockerfile
volumes:
- ./:/app
env_file: ./clovers-preview/.env
depends_on:
- redis
- backend
frontend:
build:
context: ./clovers-front
dockerfile: Dockerfile
env_file: ./clovers-front/.env
ports:
- 3000:3000
postgres:
restart: always
image: "postgres:14.3"
expose:
- 5432
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=local_development_passphrase
redis:
restart: always
image: "redis:7.0-alpine"
command: redis-server
expose:
- 6379
volumes:
- redis_data:/data
volumes:
pg_data:
redis_data: