-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
docker-compose.yml
54 lines (51 loc) · 1.24 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
services:
db:
restart: on-failure:3
build:
context: "."
dockerfile: docker/Dockerfile.db
volumes:
- ./docker/mysql:/var/lib/mysql
env_file:
- ${ENV_FILE_LOCATION}
command: mysqld --mysql-native-password=on --skip-mysqlx
cap_add:
- SYS_NICE
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 12
uwsgi:
restart: on-failure:3
build:
context: "."
dockerfile: ${CLIENT_DOCKERFILE}
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
environment:
- COMMUNITY_NAME=${COMMUNITY_NAME}
- RAILS_ENV=${RAILS_ENV}
- MAILER_PROTOCOL=${MAILER_PROTOCOL}
- CONFIRMABLE_ALLOWED_ACCESS_DAYS=${CONFIRMABLE_ALLOWED_ACCESS_DAYS}
- LOCAL_DEV_PORT=${LOCAL_DEV_PORT}
env_file:
- ${ENV_FILE_LOCATION}
ports:
- "${LOCAL_DEV_PORT}:3000"
volumes:
- .:/code
- ./static:/var/www/static
- ./images:/var/www/images
links:
- redis
- db
redis:
restart: on-failure:3
image: redis:latest
healthcheck:
test: ["CMD", "redis-cli","ping"]