-
-
Notifications
You must be signed in to change notification settings - Fork 393
/
docker-compose.yml
46 lines (42 loc) · 1011 Bytes
/
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
version: '3'
services:
stringer-setup:
image: stringerrss/stringer:latest
container_name: stringer-setup
restart: no
env_file: .env
volumes:
- ./.env:/app/.env
entrypoint: ["ruby"]
command: ["/app/docker/init_or_update_env.rb"]
stringer-postgres:
image: postgres:16-alpine
container_name: stringer-postgres
restart: always
depends_on:
stringer-setup:
condition: service_completed_successfully
networks:
- stringer-network
volumes:
- /srv/stringer/data:/var/lib/postgresql/data
env_file: .env
stringer:
image: stringerrss/stringer:latest
container_name: stringer
build: .
depends_on:
stringer-postgres:
condition: service_started
stringer-setup:
condition: service_completed_successfully
restart: always
ports:
- 80:8080
networks:
- stringer-network
env_file: .env
networks:
stringer-network:
external: false
name: stringer-network