forked from midarrlabs/midarr-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (91 loc) 路 2.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (91 loc) 路 2.14 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "3"
services:
web:
build: .
volumes:
- ./:/app
- ./fixtures/movies:/movies
- ./fixtures/shows:/shows
ports:
- 4000:4000
environment:
- DB_USERNAME=my_user
- DB_PASSWORD=my_password
- DB_DATABASE=my_database
- DB_HOSTNAME=postgresql
- SETUP_ADMIN_EMAIL=admin@email.com
- SETUP_ADMIN_NAME=admin
- SETUP_ADMIN_PASSWORD=passwordpassword
command: >
bash -c "mix phx.server"
depends_on:
- postgresql
postgresql:
image: bitnami/postgresql:14
healthcheck:
test: "exit 0"
ports:
- 5432:5432
environment:
- POSTGRESQL_USERNAME=my_user
- POSTGRESQL_PASSWORD=my_password
- POSTGRESQL_DATABASE=my_database
test-web:
build: .
depends_on:
postgresql:
condition: service_healthy
test-postgresql:
condition: service_healthy
test-radarr:
condition: service_healthy
test-sonarr:
condition: service_healthy
volumes:
- ./:/app
- ./fixtures/movies:/movies
- ./fixtures/shows:/shows
environment:
- DB_USERNAME=my_user
- DB_PASSWORD=my_password
- DB_DATABASE=my_database
- DB_HOSTNAME=postgresql
- SETUP_ADMIN_EMAIL=admin@email.com
- SETUP_ADMIN_NAME=admin
- SETUP_ADMIN_PASSWORD=passwordpassword
command: >
bash -c "mix test"
test-postgresql:
image: bitnami/postgresql:14
healthcheck:
test: "exit 0"
environment:
- POSTGRESQL_USERNAME=my_user
- POSTGRESQL_PASSWORD=my_password
- POSTGRESQL_DATABASE=my_database
test-radarr:
image: mdhiggins/radarr-sma
healthcheck:
test: "exit 0"
environment:
- PUID=1000
- PGID=1000
- TZ=Pacific/Auckland
volumes:
- ./fixtures/radarr:/config
- ./fixtures/movies:/movies
ports:
- 7878:7878
test-sonarr:
image: mdhiggins/sonarr-sma
healthcheck:
test: "exit 0"
environment:
- PUID=1000
- PGID=1000
- TZ=Pacific/Auckland
volumes:
- ./fixtures/sonarr:/config
- ./fixtures/shows:/shows
ports:
- 8989:8989