-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (80 loc) · 2 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
version: "3.4"
services:
openstead-api:
build:
context: ./backend
dockerfile: ./Dockerfile.local
args:
- APP_ENV=${APP_ENV:-production}
- UID=1000
- GID=1000
environment:
- UID=1000
- GID=1000
working_dir: /var/www/html
volumes:
- type: bind
source: ./backend
target: /var/www/html
extra_hosts:
- "host.docker.internal:host-gateway"
container_name: openstead-api
image: openstead-api
ports:
- 8000:80
depends_on:
- mysql
# - pgsql
- redis
- minio
mysql:
image: mysql:8.0.34
volumes:
- openstead-mysql:/var/lib/mysqlmysql
environment:
- MYSQL_DATABASE=openstead
- MYSQL_USER=openstead
- MYSQL_PASSWORD=secret
- MYSQL_ROOT_PASSWORD=secret
ports:
- 33062:3306
# pgsql:
# image: postgres:13
# ports:
# - '5432:5432'
# environment:
# PGPASSWORD: '${DB_PASSWORD:-secret}'
# POSTGRES_DB: '${DB_DATABASE:-openstead}'
# POSTGRES_USER: '${DB_USERNAME:-postgres}'
# POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
# PGDATA: /var/lib/postgresql/data/pgdata
# volumes:
# - 'openstead-pgsql:/var/lib/postgresql/data'
redis:
image: redis
minio:
image: minio/minio
ports:
- 9000:9000
- 9001:9001
volumes:
- openstead-minio:/data
command: server --console-address ":9001" /data
environment:
MINIO_ROOT_USER: ${MINIO_USER:-minio}
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD:-Password123}
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set osminio http://minio:9000 ${MINIO_USER:-minio} ${MINIO_PASSWORD:-Password123};
/usr/bin/mc mb osminio/${MEDIA_BUCKET:-media};
/usr/bin/mc policy set public osminio/${MEDIA_BUCKET:-media};
exit 0;
"
volumes:
openstead-mysql:
openstead-minio: { }
openstead-pgsql: