forked from catima/catima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (116 loc) · 2.54 KB
/
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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
networks:
catima-net:
driver: bridge
name: catima
services:
catima-app:
image: unillett/catima:latest-app
build:
context: ./
dockerfile: ./docker/Dockerfile
target: app-dev
env_file:
- ./docker/.env
ports:
- "8383:3000"
expose:
- "4000"
depends_on:
catima-postgres:
condition: service_healthy
catima-redis:
condition: service_healthy
volumes:
- ./:/var/www/catima
networks:
- catima-net
healthcheck:
test: curl --fail http://127.0.0.1:3000/health || exit 1
interval: 10s
timeout: 5s
retries: 5
start_period: 10m
container_name: catima-app
catima-worker:
image: unillett/catima:latest-worker
build:
context: ./
dockerfile: ./docker/Dockerfile
target: worker-dev
env_file:
- ./docker/.env
depends_on:
catima-postgres:
condition: service_healthy
catima-redis:
condition: service_healthy
catima-app:
condition: service_healthy
volumes_from:
- catima-app
networks:
- catima-net
container_name: catima-worker
catima-postgres:
image: postgis/postgis:15-3.3
env_file:
- ./docker/.env
ports:
- "127.0.0.1:5410:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./docker/config/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- catima-net
healthcheck:
test: pg_isready -U docker -h 127.0.0.1
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
container_name: catima-postgres
catima-redis:
image: "redis:7"
env_file:
- ./docker/.env
expose:
- "6379"
command: redis-server
volumes:
- redis-data:/data
networks:
- catima-net
healthcheck:
test: redis-cli ping
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
container_name: catima-redis
catima-mailhog:
image: mailhog/mailhog:latest
expose:
- "1025"
ports:
- "127.0.0.1:8028:8025"
networks:
- catima-net
container_name: catima-mailhog
catima-selenium:
image: "seleniarm/standalone-chromium:latest"
shm_size: "2gb"
ports:
- "127.0.0.1:4444:4444"
- "127.0.0.1:5900:5900"
networks:
- catima-net
healthcheck:
test: /opt/bin/check-grid.sh --host 0.0.0.0 --port 4444
interval: 20s
timeout: 5s
retries: 5
start_period: 10s
container_name: catima-selenium
volumes:
redis-data:
postgres-data: