-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 802 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 802 Bytes
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
version: '3.9'
services:
postgres:
image: postgres:15.4-alpine
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- postgres:/var/lib/postgresql/data
restart: always
web:
image: inventory
build: .
command: >
bash -c "bin/docker-entrypoint"
volumes:
- .:/inventory
- files:/inventory/storage
- secrets:/inventory/config/secrets
ports:
- "80:3000"
depends_on:
- postgres
environment:
RACK_ENV: "production"
RAILS_ENV: "production"
NODE_ENV: "production"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_HOST: postgres
restart: always
volumes:
postgres:
files:
secrets: