-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-production.yaml
More file actions
162 lines (147 loc) · 3.57 KB
/
Copy pathdocker-compose-production.yaml
File metadata and controls
162 lines (147 loc) · 3.57 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
services:
web:
image: nginx:alpine
container_name: molmedb-nginx
restart: unless-stopped
volumes:
- ./:/var/www
- molmedb-storage-production:/var/www/storage
- ./docker/production/nginx/nginx.conf:/etc/nginx/nginx.conf
tty: true
ports:
- "8443:443"
networks:
- molmedb-network
depends_on:
- app
# condition: service_healthy
app:
image: molmedb-backend
user: "www-data"
build:
context: .
dockerfile: ./docker/common/php-fpm/Dockerfile
target: production
restart: unless-stopped
container_name: molmedb-backend
volumes:
- ./:/var/www
- molmedb-storage-production:/var/www/storage
- /var/www/bootstrap
env_file:
- .env
environment:
# - APP_ENV=production
# - APP_DEBUG=false
- FRONTEND_URL=http://frontend:3000
networks:
- molmedb-network
# healthcheck: // TODO
# test: ["CMD-SHELL", "php-fpm-healthcheck || exit 1"]
# interval: 10s
# timeout: 5s
# retries: 3
depends_on:
db:
condition: service_healthy
app-scheduler-worker:
image: molmedb-backend
container_name: molmedb-scheduler-worker
tty: true
env_file:
- .env
environment:
- SERVICE_TAGS=dev
- SERVICE_NAME=molmedb-scheduler-worker
working_dir: /var/www
volumes:
- ./:/var/www
- /var/www/bootstrap
networks:
- molmedb-network
depends_on:
- app
command: php artisan schedule:work
restart: unless-stopped
# frontend:
# container_name: molmedb-frontend
# build:
# context: ./frontend/src
# dockerfile: ../../docker/production/frontend/Dockerfile
# restart: unless-stopped
# networks:
# - molmedb-network
# env_file:
# - .env
# environment:
# #if you???re using Windows, you may need to uncomment the next line - Sol from @Kobe E
# # - WATCHPACK_POLLING=true
# - NEXT_PUBLIC_BACKEND_URL=http://web:443
# - NODE_ENV=production
# ports:
# - 3000:3000
# depends_on:
# - app
db:
build: ./database/extensions/bingo
platform: linux/amd64
privileged: true
container_name: molmedb-dev-db
env_file: ./.env
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "5433:5432"
shm_size: '8gb'
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${DB_USERNAME}", "-d", "${DB_DATABASE}" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- molmedb-db:/var/lib/postgresql/data
networks:
- molmedb-network
adminer:
image: adminer
container_name: molmedb-adminer
restart: unless-stopped
ports:
- "8080:8080"
depends_on:
- db
networks:
- molmedb-network
redis:
image: redis:alpine
container_name: molmedb-redis
restart: unless-stopped
command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
ports:
- "6379:6379"
volumes:
- molmedb-redis:/data
networks:
- molmedb-network
rdkit:
build:
context: ./modules/Rdkit/src
dockerfile: ./../../../docker/common/rdkit/Dockerfile
container_name: rdkit
ports:
- "9696:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/test"]
interval: 120s
timeout: 10s
retries: 5
start_period: 10s
volumes:
molmedb-storage-production:
molmedb-db:
molmedb-redis:
networks:
molmedb-network: