-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
56 lines (56 loc) · 1.24 KB
/
compose.yaml
File metadata and controls
56 lines (56 loc) · 1.24 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
name: prod-spree-ecomprocessing-plugin
services:
spree-postgres:
container_name: ecp-${RAILS_ENV}-spree-postgres
image: "postgres:14-alpine"
restart: always
user: postgres
expose:
- 5432
env_file:
- .env
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- spree-network
volumes:
- spree-psql-data:/var/lib/postgresql/data
spree-app:
container_name: ecp-${RAILS_ENV}-spree-commerce
build:
context: .
target: production
args:
- port:${PORT}
- rails_env:${RAILS_ENV}
env_file:
- .env
depends_on:
spree-postgres:
condition: service_healthy
ports:
- ${PORT}:${PORT}
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:${PORT}" ]
interval: 1m
timeout: 20s
retries: 5
networks:
- spree-network
volumes:
- spree-app:/mnt/spree
networks:
spree-network:
driver: bridge
name: ecp-${RAILS_ENV}-spree-network
volumes:
spree-psql-data:
name: ecp-${RAILS_ENV}-spree-psql-data
spree-app:
name: ecp-${RAILS_ENV}-spree-app