forked from codidact/qpixel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 870 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
version: "3.8"
services:
db:
build:
context: "."
dockerfile: docker/Dockerfile.db
volumes:
- ./docker/mysql:/var/lib/mysql
env_file:
- ${ENV_FILE_LOCATION}
command: mysqld --default-authentication-plugin=mysql_native_password --skip-mysqlx
uwsgi:
restart: always
build:
context: "."
dockerfile: docker/Dockerfile
depends_on:
- db
environment:
- COMMUNITY_NAME=${COMMUNITY_NAME}
- RAILS_ENV=${RAILS_ENV}
- CONFIRMABLE_ALLOWED_ACCESS_DAYS=${CONFIRMABLE_ALLOWED_ACCESS_DAYS}
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: always
image: redis:latest
depends_on:
- db