tangled mirror of catsky-馃惐 Soothing soft social-app fork with all the niche toggles! (Unofficial); for issues and PRs please put them on github:NekoDrone/catsky-social
1version: '3.8'
2services:
3 # An ephermerally-stored postgres database for single-use test runs
4 db_test: &db_test
5 image: postgres:14.4-alpine
6 environment:
7 - POSTGRES_USER=pg
8 - POSTGRES_PASSWORD=password
9 ports:
10 - '5433:5432'
11 # Healthcheck ensures db is queryable when `docker-compose up --wait` completes
12 healthcheck:
13 test: 'pg_isready -U pg'
14 interval: 500ms
15 timeout: 10s
16 retries: 20
17 # A persistently-stored postgres database
18 db:
19 <<: *db_test
20 ports:
21 - '5432:5432'
22 healthcheck:
23 disable: true
24 volumes:
25 - atp_db:/var/lib/postgresql/data
26 # An ephermerally-stored redis cache for single-use test runs
27 redis_test: &redis_test
28 image: redis:7.0-alpine
29 ports:
30 - '6380:6379'
31 # Healthcheck ensures redis is queryable when `docker-compose up --wait` completes
32 healthcheck:
33 test: ['CMD-SHELL', '[ "$$(redis-cli ping)" = "PONG" ]']
34 interval: 500ms
35 timeout: 10s
36 retries: 20
37 # A persistently-stored redis cache
38 redis:
39 <<: *redis_test
40 command: redis-server --save 60 1 --loglevel warning
41 ports:
42 - '6379:6379'
43 healthcheck:
44 disable: true
45 volumes:
46 - atp_redis:/data
47volumes:
48 atp_db:
49 atp_redis: