-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpodman-compose.yaml
More file actions
49 lines (46 loc) · 1.11 KB
/
podman-compose.yaml
File metadata and controls
49 lines (46 loc) · 1.11 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
services:
database:
image: "postgres:alpine"
ports:
- "5432:5432"
environment:
POSTGRES_USER: "catalog2"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "catalog2"
volumes:
- "catalog_postgresql:/var/lib/postgresql/data"
networks:
- catalog2
healthcheck:
test: pg_isready
webserver:
image: "catalog2:latest"
build:
context: .
dockerfile: "Containerfile"
args:
format: docker
ports:
- "3000:3000"
environment:
DATABASE_URL: "postgres://catalog2:password@database:5432/catalog2"
WEB_URL: "0.0.0.0:3000"
USER_CREDS: |
[
{
"username": "admin",
"hash": "$$2b$$12$$QkHm2JiQg3WILPe0l/8Vqun7UVLqfSBLAzXiKbffGhs11RSqH7bjS"
}
]
SECERT_KEY: "N9&YMUGmNpP@dy$$At6jv$$CEoXRA5hEgNy%C3n4mVKQpDkJoFMZ5VxK#&e&7xrYrC5$$nai73GE!dGKqxc"
networks:
- catalog2
healthcheck:
test: curl --fail http://localhost:3000
depends_on:
database:
condition: "service_healthy"
volumes:
catalog_postgresql:
networks:
catalog2: